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