mirror of
https://github.com/tiennm99/CSX101.git
synced 2026-06-06 00:14:40 +00:00
5 lines
91 B
Python
5 lines
91 B
Python
k, t = [int(i) for i in input().split()]
|
|
r = t % (2*k)
|
|
if (r > k):
|
|
r = 2*k - r
|
|
print(r) |