Submission #7937836
Source Code Expand
import math R, N, M = map(int, input().split()) cut = [0] * (N-1) for i in range(N): x = -R + R*2 / N*i y = math.sqrt(R**2 - x**2) cut[i-1] = 2 * y print(sum(map(max, zip(cut + [0]*M, [0]*M + cut))))
Submission Info
Submission Time | |
---|---|
Task | B - ステップカット |
User | yu5shi8 |
Language | Python (3.4.3) |
Score | 200 |
Code Size | 224 Byte |
Status | AC |
Exec Time | 169 ms |
Memory | 10084 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
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 | 3060 KB |
00_example_02.txt | AC | 17 ms | 3060 KB |
00_example_03.txt | AC | 143 ms | 7668 KB |
10_rand_01.txt | AC | 18 ms | 3060 KB |
10_rand_02.txt | AC | 17 ms | 2940 KB |
10_rand_03.txt | AC | 81 ms | 5236 KB |
10_rand_04.txt | AC | 18 ms | 3060 KB |
10_rand_05.txt | AC | 25 ms | 3188 KB |
10_rand_06.txt | AC | 21 ms | 3060 KB |
10_rand_07.txt | AC | 43 ms | 3828 KB |
10_rand_08.txt | AC | 32 ms | 3572 KB |
20_hand_01.txt | AC | 148 ms | 7668 KB |
20_hand_02.txt | AC | 169 ms | 10084 KB |
20_hand_03.txt | AC | 152 ms | 7668 KB |
20_hand_04.txt | AC | 18 ms | 3060 KB |
20_hand_05.txt | AC | 17 ms | 2940 KB |