题库练习 Johny Likes Numbers
← 上一题 下一题 →

A10415 | Johny Likes Numbers

时间限制1s
内存限制256MB
通过 / 提交0/0

题目描述

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
C++ 编辑器
输入
输出