4 solutions

  • 2
    @ 2025-7-15 10:43:22
    #include<bits/stdc++.h>
     using namespace std;
      int main() {
        double Xa,Ya,Xb,Yb,AB;
        cin>>Xa>>Ya;
        cin>>Xb>>Yb;
        AB=sqrt((Xa-Xb)*(Xa-Xb)+(Ya-Yb)*(Ya-Yb));
        printf("%.3f\n",AB);
        return 0; 
      }
    
    • 1

      #include<bits/stdc++.h> using namespace std; int main() { double Xa,Ya,Xb,Yb,AB; cin>>Xa>>Ya; cin>>Xb>>Yb; AB=sqrt((Xa-Xb)(Xa-Xb)+(Ya-Yb)(Ya-Yb)); printf("%.3f\n",AB); return 0; }

      • 0
        @ 2025-10-1 12:30:03

        #include <iostream>
        #include <cmath>
        using namespace std;
        int main(){
        	double a, b, c, d;
        	cin >> a >> b >> c >> d;
        	printf("%.3f", sqrt((a - c) * (a - c) + (b - d) * (b - d)));
        	return 0;
        }
        
        • 0
          @ 2025-10-1 12:30:03

          #include <iostream>
          #include <cmath>
          using namespace std;
          int main(){
          	double a, b, c, d;
          	cin >> a >> b >> c >> d;
          	printf("%.3f", sqrt((a - c) * (a - c) + (b - d) * (b - d)));
          	return 0;
          }
          
          • 1

          Information

          ID
          4480
          Time
          1000ms
          Memory
          128MiB
          Difficulty
          1
          Tags
          (None)
          # Submissions
          164
          Accepted
          111
          Uploaded By