Submission #34805643


Source Code Expand

# https://atcoder.jp/contests/typical90/submissions/34453481

t = gets.chomp.to_i
l, x, y = gets.chomp.split.map(&:to_f)
q = gets.chomp.to_i

q.times do
  e_i = (gets.chomp.to_i % t).to_f
  theta = Math::PI * 2.0 * e_i / t
  wheel_y = -l / 2.0 * Math.sin(theta)
  wheel_z = l / 2.0 * (1.0 - Math.cos(theta))

  p Math.atan(wheel_z / Math.sqrt(x ** 2 + (y - wheel_y) ** 2)) * 180.0 / Math::PI
end

Submission Info

Submission Time
Task 018 - Statue of Chokudai(★3)
User thatblue
Language Ruby (2.7.1)
Score 3
Code Size 410 Byte
Status AC
Exec Time 64 ms
Memory 14888 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 58 ms 14548 KiB
00_sample_01.txt AC 57 ms 14652 KiB
10_random_small_00.txt AC 56 ms 14456 KiB
10_random_small_01.txt AC 58 ms 14632 KiB
10_random_small_02.txt AC 55 ms 14520 KiB
10_random_small_03.txt AC 53 ms 14788 KiB
10_random_small_04.txt AC 54 ms 14580 KiB
10_random_small_05.txt AC 55 ms 14852 KiB
10_random_small_06.txt AC 56 ms 14556 KiB
10_random_small_07.txt AC 55 ms 14576 KiB
10_random_small_08.txt AC 56 ms 14624 KiB
10_random_small_09.txt AC 57 ms 14612 KiB
11_random_large_00.txt AC 57 ms 14528 KiB
11_random_large_01.txt AC 61 ms 14692 KiB
11_random_large_02.txt AC 59 ms 14716 KiB
11_random_large_03.txt AC 59 ms 14724 KiB
11_random_large_04.txt AC 64 ms 14720 KiB
11_random_large_05.txt AC 55 ms 14764 KiB
11_random_large_06.txt AC 62 ms 14800 KiB
11_random_large_07.txt AC 59 ms 14648 KiB
11_random_large_08.txt AC 55 ms 14692 KiB
11_random_large_09.txt AC 62 ms 14760 KiB
20_random_max_00.txt AC 62 ms 14676 KiB
20_random_max_01.txt AC 62 ms 14756 KiB
20_random_max_02.txt AC 62 ms 14612 KiB
20_random_max_03.txt AC 63 ms 14888 KiB
20_random_max_04.txt AC 60 ms 14712 KiB