問題
A – けんしょう先生のお菓子配り
回答
a = int(input()) b = int(input()) remainder = a % b shortage = 0 if remainder > 0: shortage = b - remainder print(shortage)
Freedom is a responsible choice.
a = int(input()) b = int(input()) remainder = a % b shortage = 0 if remainder > 0: shortage = b - remainder print(shortage)