#include<iostream> #include<cstdio> using namespace std; int main() { double a, b, x, y; while (cin >> a && cin >> b && cin >> x && cin >> y) { double ans = sqrt((x - a)*(x - a) + (y - b)*(y - b)); printf("%.2f\n", ans); } return 0; }
原文地址:https://www.cnblogs.com/Mered1th/p/10556043.html
时间: 2024-10-18 09:30:56