http://codeforces.com/problemset/problem/678/A
给定n,k。
求被k整除且大于n的最小数。
#include <bits/stdc++.h>
using namespace std;
int n,k;
int main(){
cin >> n >> k;
cout << k*(n/k+1) << endl;
}
http://codeforces.com/problemset/problem/678/A
给定n,k。
求被k整除且大于n的最小数。
#include <bits/stdc++.h>
using namespace std;
int n,k;
int main(){
cin >> n >> k;
cout << k*(n/k+1) << endl;
}