1 solutions
-
1
- #include<bits/stdc++.h>
- using namespace std;
- double dis(double a,double b,double c,double d){
-
return sqrt((c-a)\*(c-a)+(d-b)\*(d-b)); } int main(){ double x1,x2,y1,y2,z1,z2;
- cin>>x1>>x2>>y1>>y2>>z1>>z2;
- cout<<fixed<<setprecision(2)<<dis(x1,x2,y1,y2)+dis(y1,y2,z1,z2)+dis(z1,z2,x1,x2);
-
return 0; }
- 1
Information
- ID
- 4700
- Time
- 1000ms
- Memory
- 125MiB
- Difficulty
- 1
- Tags
- (None)
- # Submissions
- 81
- Accepted
- 25
- Uploaded By