Cod sursa(job #1309309)
Utilizator | Data | 5 ianuarie 2015 17:25:20 | |
---|---|---|---|
Problema | Next | Scor | 10 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.21 kb |
#include<fstream>
#include<algorithm>
using namespace std;
long long n,d;
int main()
{
ifstream cin("next.in");
ofstream cout("next.out");
cin>>n>>d;
cout<<n+d-n%d<<'\n';
return 0;
}