mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-10 02:58:48 +00:00
P5735 【深基7.例1】距离函数
R38740507
This commit is contained in:
parent
fd5878954f
commit
9f8017f2a5
11
problem/P5735/P5735.cpp
Normal file
11
problem/P5735/P5735.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
// R38740507
|
||||
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
double x1, y1, x2, y2, x3, y3;
|
||||
scanf("%lf%lf%lf%lf%lf%lf", &x1, &y1, &x2, &y2, &x3, &y3), printf("%.2lf\n", sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)) + sqrt((x2 - x3) * (x2 - x3) + (y2 - y3) * (y2 - y3)) + sqrt((x1 - x3) * (x1 - x3) + (y1 - y3) * (y1 - y3)));
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user