답안 #9097

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
9097 2014-09-27T11:59:15 Z roott76 Wall construction (kriii2_WA) C++
0 / 4
0 ms 1100 KB
#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);
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 1100 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Halted 0 ms 0 KB -