Submission #7616872


Source Code Expand

def length(n,N,R):
    if n<=0 or n>=N:
        return 0
    else:
        return 4 * R * ((n * (N - n)) ** 0.5) / N

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

for i in range(1,N+M):
    ans += max(length(i,N,R), length(i-M,N,R))
print(ans)

Submission Info

Submission Time
Task B - ステップカット
User xstydn
Language Python (3.4.3)
Score 200
Code Size 248 Byte
Status AC
Exec Time 256 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 204 ms 3188 KB
10_rand_01.txt AC 17 ms 2940 KB
10_rand_02.txt AC 17 ms 3060 KB
10_rand_03.txt AC 98 ms 2940 KB
10_rand_04.txt AC 18 ms 3060 KB
10_rand_05.txt AC 26 ms 3060 KB
10_rand_06.txt AC 21 ms 2940 KB
10_rand_07.txt AC 47 ms 3060 KB
10_rand_08.txt AC 36 ms 2940 KB
20_hand_01.txt AC 165 ms 2940 KB
20_hand_02.txt AC 256 ms 3060 KB
20_hand_03.txt AC 163 ms 2940 KB
20_hand_04.txt AC 17 ms 2940 KB
20_hand_05.txt AC 17 ms 2940 KB