C.cpp 236 B

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