AT1198_100 @ 2020-05-13 13:43:44
#include<bits/stdc++.h>
using namespace std;
int main(){
double a,b,c,d,e,f;
cin>>a>>b>>c>>d>>e>>f;
int x,y,z;
x=sqrt((c-a)*(c-a)+(d-b)*(d-b));
y=sqrt((e-c)*(e-c)+(f-d)*(f-d));
z=sqrt((e-a)*(e-a)+(f-b)*(f-b));
cout<<fixed<<setprecision(2)<<x+y+z;
return 0;
}
by lhz1111 @ 2020-05-31 22:19:36
用double