0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-23 20:28:48 +00:00

616. 两点间的距离

https://www.acwing.com/problem/content/submission/code_detail/6863283/
This commit is contained in:
Baoshuo Ren 2021-08-03 14:55:00 +08:00 committed by Baoshuo Ren
parent 702561f5fb
commit ac5c9e19a0
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

10
AcWing/616/616.cpp Normal file
View File

@ -0,0 +1,10 @@
#include <bits/stdc++.h>
using namespace std;
int main() {
double x1, y1, x2, y2;
cin >> x1 >> y1 >> x2 >> y2;
cout << fixed << setprecision(4) << sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2)) << endl;
return 0;
}