5 solutions

  • 3
    @ 2024-10-26 13:59:54
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	double xa,ya,xb,yb;
    	cin>>xa>>ya>>xb>>yb;
    	double a=xa-xb;
    	double b=ya-yb;
    	double c=sqrt(a*a+b*b);
    	cout<<fixed<<setprecision(3)<<c;
    	return 0;
    }
    
    • 1
      @ 2025-5-19 19:33:44
      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
      	double xa,ya,xb,yb;
      	cin>>xa>>ya>>xb>>yb;
      	double a=xa-xb;
      	double b=ya-yb;
      	double c=sqrt(a*a+b*b);
      	cout<<fixed<<setprecision(3)<<c;
      	return 0;
      }
      
      

      这叫做实力!!!!

      • -1
        @ 2025-3-1 10:33:39

        #include<bits/stdc++.h> using namespace std; int main() { double xa,ya,xb,yb; cin>>xa>>ya>>xb>>yb; double a=abs(xa-xb); double b=abs(ya-yb); double c=sqrt(aa+bb); cout<<fixed<<setprecision(3)<<c; return 0; }

        • -11
          @ 2024-7-2 10:33:52

          666

          • -12
            @ 2024-7-2 10:34:42

            • 1

            Information

            ID
            853
            Time
            1000ms
            Memory
            256MiB
            Difficulty
            3
            Tags
            (None)
            # Submissions
            224
            Accepted
            57
            Uploaded By