U.cpp 201 B

12345678910
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int main() {
  4. double x1, y1, x2, y2;
  5. cin >> x1 >> y1 >> x2 >> y2;
  6. cout << fixed << setprecision(3) << hypot(x1 - x2, y1 - y2);
  7. return 0;
  8. }