Cod sursa(job #42320)
Utilizator | Data | 29 martie 2007 08:47:41 | |
---|---|---|---|
Problema | Next | Scor | 10 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.19 kb |
#include<fstream.h>
unsigned long long int d,n,r;
int main()
{
ifstream in("next.in");
ofstream out("next.out");
in>>n>>d;
r=n%d;
out<<n+d-r;
in.close();
out.close();
return 0;
}