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 <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{
double N, R, x[1001], y[1001], PI = 3.14159265359;;
scanf("%lf %lf", &N, &R);
for(int i=0; i<N; i++) scanf("%lf %lf", &x[i], &y[i]);
double dist = sqrt(abs(x[0]-x[1]) + abs(y[0]-y[1]));
printf("%.12lf\n", dist*2 + R*2*PI);
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |