Submission #64624098


Source Code Expand

options(scipen = 100, digits = 10)
conn <- file("stdin", open = "r")
rin <- function(n = 1) readLines(conn, n = n)
split <- function(str, split = " ") unlist(strsplit(str, split = split))

T <- as.integer(rin())
LXY <- as.integer(split(rin()))
L <- LXY[1L]
X <- LXY[2L]
Y <- LXY[3L]
Q <- as.integer(rin())
E <- as.integer(split(rin(Q)))

beta <- E / T * 2 * pi
y <- - sin(beta) * L / 2
z <- - (cos(beta) - 1) * L / 2
ans <- atan2(z, sqrt(X ** 2 + (Y - y) ** 2))
cat(ans / pi * 180)

Submission Info

Submission Time
Task 018 - Statue of Chokudai(★3)
User negoto_coder
Language R (GNU R 4.2.1)
Score 3
Code Size 500 Byte
Status AC
Exec Time 136 ms
Memory 59904 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 130 ms 59692 KiB
00_sample_01.txt AC 131 ms 59616 KiB
10_random_small_00.txt AC 132 ms 59388 KiB
10_random_small_01.txt AC 130 ms 59668 KiB
10_random_small_02.txt AC 130 ms 59792 KiB
10_random_small_03.txt AC 129 ms 59560 KiB
10_random_small_04.txt AC 130 ms 59660 KiB
10_random_small_05.txt AC 130 ms 59828 KiB
10_random_small_06.txt AC 132 ms 59660 KiB
10_random_small_07.txt AC 131 ms 59620 KiB
10_random_small_08.txt AC 130 ms 59644 KiB
10_random_small_09.txt AC 130 ms 59560 KiB
11_random_large_00.txt AC 132 ms 59688 KiB
11_random_large_01.txt AC 134 ms 59848 KiB
11_random_large_02.txt AC 131 ms 59760 KiB
11_random_large_03.txt AC 131 ms 59756 KiB
11_random_large_04.txt AC 133 ms 59800 KiB
11_random_large_05.txt AC 131 ms 59568 KiB
11_random_large_06.txt AC 132 ms 59836 KiB
11_random_large_07.txt AC 131 ms 59800 KiB
11_random_large_08.txt AC 130 ms 59780 KiB
11_random_large_09.txt AC 133 ms 59856 KiB
20_random_max_00.txt AC 131 ms 59832 KiB
20_random_max_01.txt AC 134 ms 59904 KiB
20_random_max_02.txt AC 133 ms 59876 KiB
20_random_max_03.txt AC 135 ms 59836 KiB
20_random_max_04.txt AC 136 ms 59892 KiB