Submission #9051

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