Submission #2117052


Source Code Expand

{for(;i++<$2+$3;)s+=2*$1*sqrt(1-(1-2/$2*(i-$3*((($2-2*i)^2)^.5>(($2-2*(i-$3))^2)^.5)))^2);printf"%f",s}

Submission Info

Submission Time
Task B - ステップカット
User kotatsugame
Language Awk (mawk 1.3.3)
Score 200
Code Size 103 Byte
Status AC
Exec Time 213 ms
Memory 384 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 3 ms 380 KB
00_example_02.txt AC 1 ms 384 KB
00_example_03.txt AC 107 ms 256 KB
10_rand_01.txt AC 1 ms 256 KB
10_rand_02.txt AC 1 ms 256 KB
10_rand_03.txt AC 53 ms 256 KB
10_rand_04.txt AC 2 ms 256 KB
10_rand_05.txt AC 7 ms 256 KB
10_rand_06.txt AC 4 ms 256 KB
10_rand_07.txt AC 20 ms 256 KB
10_rand_08.txt AC 14 ms 256 KB
20_hand_01.txt AC 104 ms 256 KB
20_hand_02.txt AC 213 ms 256 KB
20_hand_03.txt AC 101 ms 256 KB
20_hand_04.txt AC 1 ms 256 KB
20_hand_05.txt AC 1 ms 256 KB