Submission #5523218


Source Code Expand

R,N,M=map(int,input().split())

def length(R,i,N):
	return max(0,R**2-abs(R-2*R*i/N)**2)**0.5

total=0	
for i in range(1,N+M):
	total+=2*max(length(R,i,N),length(R,i-M,N))
print(total)

Submission Info

Submission Time
Task B - ステップカット
User tmg_dayo
Language Python (3.4.3)
Score 200
Code Size 192 Byte
Status AC
Exec Time 519 ms
Memory 3188 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 16
Set Name Test Cases
Sample 00_example_01.txt, 00_example_02.txt, 00_example_03.txt
All 00_example_01.txt, 00_example_02.txt, 00_example_03.txt, 10_rand_01.txt, 10_rand_02.txt, 10_rand_03.txt, 10_rand_04.txt, 10_rand_05.txt, 10_rand_06.txt, 10_rand_07.txt, 10_rand_08.txt, 20_hand_01.txt, 20_hand_02.txt, 20_hand_03.txt, 20_hand_04.txt, 20_hand_05.txt
Case Name Status Exec Time Memory
00_example_01.txt AC 17 ms 2940 KB
00_example_02.txt AC 17 ms 3060 KB
00_example_03.txt AC 265 ms 3188 KB
10_rand_01.txt AC 17 ms 3060 KB
10_rand_02.txt AC 17 ms 2940 KB
10_rand_03.txt AC 149 ms 2940 KB
10_rand_04.txt AC 19 ms 2936 KB
10_rand_05.txt AC 33 ms 2940 KB
10_rand_06.txt AC 25 ms 2940 KB
10_rand_07.txt AC 66 ms 3060 KB
10_rand_08.txt AC 50 ms 2940 KB
20_hand_01.txt AC 280 ms 2940 KB
20_hand_02.txt AC 519 ms 2940 KB
20_hand_03.txt AC 258 ms 2940 KB
20_hand_04.txt AC 17 ms 2940 KB
20_hand_05.txt AC 17 ms 2940 KB