1 条题解

  • 0
    @ 2024-10-22 20:51:04
    #include <bits/stdc++.h>
    using namespace std;
    int main(){
        double x1,y1,x2,y2;
        cin>>x1>>y1;
        cin>>x2>>y2; 
        double k1= pow(x1-x2,2);
        double k2= pow(y1-y2,2);
        
        double k3 = sqrt(k1+k2);
        cout<<fixed<<setprecision(3)<<k3;
    	return 0;
    	
    	
    }
    
    
    
    • 1

    信息

    ID
    174
    时间
    1000ms
    内存
    128MiB
    难度
    5
    标签
    递交数
    46
    已通过
    18
    上传者