Submission #9097

#TimeUsernameProblemLanguageResultExecution timeMemory
9097roott76Wall construction (kriii2_WA)C++98
0 / 4
0 ms1100 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...