← Back to List

27566번: Blueberry Waffle ↗

Solutions

Python 3
114 B | 114 chars
r, f = map(int, input().split())

d = (180 * f // r) % 360

if 90 <= d <= 270:
  print("down")
else:
  print("up")