#include <bits/stdc++.h> using namespace std; int main() { double x1, x2, y1, y2; cin >> x1 >> x2 >> y1 >> y2; cout << fixed << setprecision(3) << sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)); return 0; }
只有40分
求各位大佬们指点谢谢!(✿◡‿◡)