测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A10415. Johny Likes Numbers

编程题 普及/提高-

题目描述

Johny likes numbers $n$ and $k$ very much. Now Johny wants to find the smallest integer $x$ greater than $n$ , so it is divisible by the number $k$ .

输入格式

The only line contains two integers $n$ and $k$ ( $1<=n,k<=10^{9}$ ).

输出格式

Print the smallest integer $x>n$ , so it is divisible by the number $k$ .

输入输出样例

输入 #1
5 3
输出 #1
6
输入 #2
25 13
输出 #2
26
输入 #3
26 13
输出 #3
39
上一题 去做题 下一题