#include<iostream>
#include<iomanip>
#include<cmath>
using namespace std;
int main()
{
double x1, y1, x2, y2, ans;
while(cin >> x1 >> y1 >> x2 >> y2)
{
ans = sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2));
cout << fixed;
cout << setprecision(2) << ans << endl;
}
return 0;
}
HDU 2001
最新推荐文章于 2020-03-28 12:25:52 发布