This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |