競プロ日和

競技プログラミングを楽しむ

ABC118 A

問題

bをaで割り切れたら、a + b を出力。

そうでなければ、b - a を出力

a, b = map(int, input().split())
print(a + b if b % a == 0 else b - a)