fork download
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int xa, ya, xb, yb;
  6.  
  7. int main()
  8. {
  9. ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
  10.  
  11. cin >> xa >> ya >> xb >> yb;
  12. cout << fixed << setprecision(2) << sqrt((xa - xb) * (xa - xb) + (ya - yb) * (ya - yb));
  13. }
Success #stdin #stdout 0s 5324KB
stdin
Standard input is empty
stdout
0.00