← Back to List

25625번: 샤틀버스 ↗

Solutions

Python 3
91 B | 91 chars
x, y = map(int, input().split())

if y > x:
  y -= x
  y %= 2 * x
else:
  y += x

print(y)