mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
ddd34a4f1c
2000-2099
10 lines
240 B
C++
10 lines
240 B
C++
#include <cmath>
|
|
#include <cstdio>
|
|
int main(void)
|
|
{
|
|
double x[2], y[2];
|
|
while (scanf("%lf%lf%lf%lf", x, y, x+1, y+1) != EOF)
|
|
printf("%.2f\n", sqrt((x[1]-x[0])*(x[1]-x[0]) + (y[1]-y[0])*(y[1]-y[0])));
|
|
return 0;
|
|
}
|