Cod sursa(job #362897)
Utilizator | Data | 11 noiembrie 2009 11:39:40 | |
---|---|---|---|
Problema | Next | Scor | 10 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.21 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(n%d==0)
fout<<n;
else fout<<(c+1)*d;
return 0;
}