Submission #32864431


Source Code Expand

import math
 
T = int(input())
L, X, Y = map(int, input().split())
Q = int(input())
EL = [int(input()) for _ in range(Q)]
 
for e in EL:
    y = math.sin(math.pi * (e * 2) / T) * (-L / 2)
    h = ((L / 2) ** 2 - (y ** 2)) ** 0.5
    z = (L / 2) + h if (T / 4) <= e <= (T * 3 / 4) else (L / 2) - h
 
    diff = ((X ** 2) + ((Y - y) ** 2)) ** 0.5
    res = math.degrees(math.atan(z / diff))
    print(res)

Submission Info

Submission Time
Task 018 - Statue of Chokudai(★3)
User inaty
Language Python (3.8.2)
Score 3
Code Size 417 Byte
Status AC
Exec Time 33 ms
Memory 9544 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 3 / 3
Status
AC × 2
AC × 27
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt
All 00_sample_00.txt, 00_sample_01.txt, 10_random_small_00.txt, 10_random_small_01.txt, 10_random_small_02.txt, 10_random_small_03.txt, 10_random_small_04.txt, 10_random_small_05.txt, 10_random_small_06.txt, 10_random_small_07.txt, 10_random_small_08.txt, 10_random_small_09.txt, 11_random_large_00.txt, 11_random_large_01.txt, 11_random_large_02.txt, 11_random_large_03.txt, 11_random_large_04.txt, 11_random_large_05.txt, 11_random_large_06.txt, 11_random_large_07.txt, 11_random_large_08.txt, 11_random_large_09.txt, 20_random_max_00.txt, 20_random_max_01.txt, 20_random_max_02.txt, 20_random_max_03.txt, 20_random_max_04.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 33 ms 9388 KiB
00_sample_01.txt AC 18 ms 9420 KiB
10_random_small_00.txt AC 19 ms 9268 KiB
10_random_small_01.txt AC 18 ms 9272 KiB
10_random_small_02.txt AC 21 ms 9248 KiB
10_random_small_03.txt AC 19 ms 9360 KiB
10_random_small_04.txt AC 18 ms 9452 KiB
10_random_small_05.txt AC 20 ms 9300 KiB
10_random_small_06.txt AC 19 ms 9296 KiB
10_random_small_07.txt AC 21 ms 9348 KiB
10_random_small_08.txt AC 22 ms 9304 KiB
10_random_small_09.txt AC 19 ms 9428 KiB
11_random_large_00.txt AC 24 ms 9340 KiB
11_random_large_01.txt AC 28 ms 9276 KiB
11_random_large_02.txt AC 27 ms 9368 KiB
11_random_large_03.txt AC 27 ms 9352 KiB
11_random_large_04.txt AC 22 ms 9428 KiB
11_random_large_05.txt AC 19 ms 9332 KiB
11_random_large_06.txt AC 23 ms 9492 KiB
11_random_large_07.txt AC 24 ms 9360 KiB
11_random_large_08.txt AC 22 ms 9312 KiB
11_random_large_09.txt AC 23 ms 9432 KiB
20_random_max_00.txt AC 28 ms 9544 KiB
20_random_max_01.txt AC 26 ms 9520 KiB
20_random_max_02.txt AC 22 ms 9372 KiB
20_random_max_03.txt AC 27 ms 9440 KiB
20_random_max_04.txt AC 26 ms 9544 KiB