1 solutions

  • 0
    @ 2023-9-30 13:47:50
    #include<bits/stdc++.h>
    using namespace std;
    double xa,xb,ya,yb;
    int main()
    {
    	cin>>xa>>ya>>xb>>yb;
    	double aa=pow((xa-xb),2);
    	double bb=pow((ya-yb),2);
    	double ans=sqrt(aa+bb);
    	printf("%.3f",ans);
    }
    
    • 1

    Information

    ID
    6725
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    7
    Tags
    (None)
    # Submissions
    448
    Accepted
    103
    Uploaded By