Cod sursa(job #362894)
Utilizator | Data | 11 noiembrie 2009 11:35:23 | |
---|---|---|---|
Problema | Next | Scor | 10 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.19 kb |
#include<fstream.h>
ifstream fin("next.in");
ofstream fout("next.out");
int main()
{
unsigned long long n,d,c;
fin>>n>>d;
c=n/d;
if(!c)fout<<n;
else fout<<(c+1)*d;
return 0;
}