1 solutions

  • 1
    @ 2025-8-19 15:20:03
    #include<bits/stdc++.h>
    using namespace std;
    double ax,ay,bx,by;
    int main(){
    	cin>>ax>>ay>>bx>>by;
    	double dx=bx-ax,dy=by-ay;
    	double res=sqrt(dx*dx+dy*dy);
    	cout<<fixed<<setprecision(3)<<res;
    	return 0;
    }
    
    • 1

    Information

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