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:
parent
702561f5fb
commit
ac5c9e19a0
10
AcWing/616/616.cpp
Normal file
10
AcWing/616/616.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user