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.
InputThe only line contains two integers n and k (1 ≤ n, k ≤ 109).
OutputPRint the smallest integer x > n, so it is divisible by the number k.
ExampleInput5 3Output6Input25 13Output26Input26 13Output39
//// Created by liyuanshuo on 17-3-5.//#include <iostream>using namespace std;int main5( ){ //freopen("/home/liyuanshuo//ClionProject/C4Practice1/in.in", "r", stdin); int n, k; cin>>n>>k; cout<<k*(n/k+1)<<endl; return 0;}
新闻热点
疑难解答