mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
6 lines
119 B
Python
6 lines
119 B
Python
def problem_p02719(input_data):
|
|
N, K = list(map(int, input_data.split()))
|
|
|
|
r = N % K
|
|
|
|
return min(r, K - r)
|