Submission #6782370
Source Code Expand
r,n,m=map(int,input().split());x=0 for i in range(1,n+m): x+=(4*r*r*(1-4*(min(abs(n/2-i),abs(n/2-i+m))/n)**2))**.5 print(x)
Submission Info
Submission Time | |
---|---|
Task | B - ステップカット |
User | miscalculation53 |
Language | Python (3.4.3) |
Score | 200 |
Code Size | 128 Byte |
Status | AC |
Exec Time | 296 ms |
Memory | 2940 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 | 18 ms | 2940 KB |
00_example_02.txt | AC | 18 ms | 2940 KB |
00_example_03.txt | AC | 154 ms | 2940 KB |
10_rand_01.txt | AC | 18 ms | 2940 KB |
10_rand_02.txt | AC | 18 ms | 2940 KB |
10_rand_03.txt | AC | 84 ms | 2940 KB |
10_rand_04.txt | AC | 19 ms | 2940 KB |
10_rand_05.txt | AC | 25 ms | 2940 KB |
10_rand_06.txt | AC | 22 ms | 2940 KB |
10_rand_07.txt | AC | 47 ms | 2940 KB |
10_rand_08.txt | AC | 37 ms | 2940 KB |
20_hand_01.txt | AC | 157 ms | 2940 KB |
20_hand_02.txt | AC | 296 ms | 2940 KB |
20_hand_03.txt | AC | 160 ms | 2940 KB |
20_hand_04.txt | AC | 18 ms | 2940 KB |
20_hand_05.txt | AC | 18 ms | 2940 KB |