3 条题解

  • 3
    @ 2025-1-16 17:56:54

    #include<bits/stdc++.h> using namespace std; int main(){ double x1,x2,y1,y2; cin>>x1>>y1>>x2>>y2; printf("%0.3lf",sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))); return 0; }

    • 1
      @ 2025-2-16 12:02:17

      #include**<bits/stdc++.h>** using namespace std; int main(){** ** double x1,x2,y1,y2;** ** cin>>x1>>y1>>x2>>y2;** ** printf("%0.3lf",sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)));** ** return 0;** ** }

      • 0
        @ 2025-3-23 12:26:16
        #include<bits/stdc++.h>
        using namespace std;
        int main(){
        double x1,x2,y1,y2; 
        cin>>x1>>y1>>x2>>y2; 
        printf("%0.3lf",sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))); 
        return 0; }
        
        • 1

        信息

        ID
        34
        时间
        1000ms
        内存
        128MiB
        难度
        4
        标签
        (无)
        递交数
        111
        已通过
        47
        上传者