#include <cstdio>
#include <cmath>
const static double PI = acos(-1.);
int main(){
int N, R;
scanf("%d %d", &N, &R);
double rad = 2*R*PI;
int x1, y1, x2, y2;
scanf("%d %d %d %d", &x1, &y1, &x2, &y2);
double dist = sqrt((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2));
printf("%lf", (2*dist)+rad);
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
1100 KB |
Output is correct |
2 |
Correct |
0 ms |
1100 KB |
Output is correct |
3 |
Correct |
0 ms |
1100 KB |
Output is correct |
4 |
Correct |
0 ms |
1100 KB |
Output is correct |
5 |
Correct |
0 ms |
1100 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
1100 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |