1 solutions

  • 1
    @ 2023-12-11 15:43:40
    1. #include<bits/stdc++.h>
    2. using namespace std;
    3. double dis(double a,double b,double c,double d){
    4. return sqrt((c-a)\*(c-a)+(d-b)\*(d-b)); } int main(){ 	double x1,x2,y1,y2,z1,z2;
      
    5. cin>>x1>>x2>>y1>>y2>>z1>>z2;
    6. cout<<fixed<<setprecision(2)<<dis(x1,x2,y1,y2)+dis(y1,y2,z1,z2)+dis(z1,z2,x1,x2);
    7. return 0; }
      
    • 1

    Information

    ID
    4700
    Time
    1000ms
    Memory
    125MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    81
    Accepted
    25
    Uploaded By