2313.Johny Likes Numbers

Time Limit: 1s Memory Limit: 256MB

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.

Input Format(From the terminal/stdin)

The only line contains two integers n and k (1 \le n,k \le 109).

Output Format(To the terminal/stdout)

Print the smallest integer x \gt n, so it is divisible by the number k.

Sample Input 1

Copy
5 3
 · \n

Sample Output 1

Copy
6
 \n

Sample Input 2

Copy
25 13
  ·  \n

Sample Output 2

Copy
26
  \n

Sample Input 3

Copy
26 13
  ·  \n

Sample Output 3

Copy
39
  \n

Submit

请先 登录

© 2025 FAQs