6 条题解

  • 7
    @ 2024-2-22 10:31:38
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	double Xa,Ya,Xb,Yb;
    	scanf("%lf%lf%lf%lf",&Xa,&Ya,&Xb,&Yb);
    	printf("%.3f",sqrt((Xb-Xa)*(Xb-Xa)+(Yb-Ya)*(Yb-Ya)));
    	return 0;
    }
    
    • 2
      @ 2024-2-22 11:21:36
      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
      	double Xa,Ya,Xb,Yb;
      	scanf("%lf%lf%lf%lf",&Xa,&Ya,&Xb,&Yb);
      	printf("%.3f",sqrt((Xb-Xa)*(Xb-Xa)+(Yb-Ya)*(Yb-Ya)));
      	return 0;
      }
      
      
      • 0
        @ 2024-2-22 10:03:52
        #include<bits/stdc++.h>
        using namespace std;
        int main()
        {
        	double Xa,Ya,Xb,Yb;
        	scanf("%lf%lf%lf%lf",&Xa,&Ya,&Xb,&Yb);
        	printf("%.3f",sqrt((Xb-Xa)*(Xb-Xa)+(Yb-Ya)*(Yb-Ya)));
        	return 0;
        }
        
        • 0
          @ 2024-2-22 9:57:42

          #include<bits/stdc++.h> using namespace std; int main(){ double Ya,Xa,Yb,Xb; scanf("%lf%lf%lf%lf",&Ya,&Xa,&Yb,&Xb); printf("%.3lf",sqrt((Xb-Xa)(Xb-Xa)+(Yb-Ya)(Yb-Ya))); }

          • -1
            @ 2024-2-22 9:57:47

            #include<bits/stdc++.h> using namespace std; int main(){ double Ya,Xa,Yb,Xb; scanf("%lf%lf%lf%lf",&Ya,&Xa,&Yb,&Xb); printf("%.3lf",sqrt((Xb-Xa)(Xb-Xa)+(Yb-Ya)(Yb-Ya))); return 0; }

            • -3
              @ 2024-2-21 11:19:06

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

              • 1

              信息

              ID
              80
              时间
              1000ms
              内存
              128MiB
              难度
              1
              标签
              (无)
              递交数
              248
              已通过
              169
              上传者