2 solutions
-
0
答案: #include<bits/stdc++.h> using namespace std; int main(){ double a,b,c,a1,b1,c1; cin>>a>>a1>>b>>b1>>c>>c1; double s1=sqrt(pow(b-a,2)+pow(b1-a1,2)); double s2=sqrt(pow(c-a,2)+pow(c1-a1,2)); double s3=sqrt(pow(c-b,2)+pow(c1-b1,2)); printf("%.10lf",s1+s2+s3); return 0; }
Information
- ID
- 17
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- —
- Tags
- # Submissions
- 21
- Accepted
- 4
- Uploaded By