4 solutions

  • 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;
    }
    

    Information

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