Submission #7444925


Source Code Expand

R,N,M=map(x->parse(Int,x),split(readline()))
ans=0
for i=1:N+M
  ans+=2*sqrt(R^2-min(i<N ? abs(R-2R*i/N) : 1e9,i>M ? abs(R-2R*(i-M)/N) : 1e9)^2)
end
println(ans)

Submission Info

Submission Time
Task B - ステップカット
User kotatsugame
Language Julia (0.5.0)
Score 200
Code Size 166 Byte
Status AC
Exec Time 578 ms
Memory 149960 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 387 ms 110052 KB
00_example_02.txt AC 393 ms 108140 KB
00_example_03.txt AC 480 ms 142060 KB
10_rand_01.txt AC 384 ms 108804 KB
10_rand_02.txt AC 386 ms 106708 KB
10_rand_03.txt AC 427 ms 124744 KB
10_rand_04.txt AC 385 ms 108492 KB
10_rand_05.txt AC 390 ms 111668 KB
10_rand_06.txt AC 388 ms 108156 KB
10_rand_07.txt AC 400 ms 115932 KB
10_rand_08.txt AC 395 ms 113220 KB
20_hand_01.txt AC 479 ms 144336 KB
20_hand_02.txt AC 578 ms 149960 KB
20_hand_03.txt AC 470 ms 137408 KB
20_hand_04.txt AC 384 ms 110732 KB
20_hand_05.txt AC 385 ms 109256 KB