Cod sursa(job #43245)

Utilizator maleficpalade andrei malefic Data 29 martie 2007 22:16:06
Problema Next Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.16 kb
#include<fstream.h>
long long main()
{ifstream fin("next.in");
ofstream fout("next.out");
int n,d,r=0;
fin>>n>>d;
r=n%d;
n=n+((d-r)%d);
fout<<n;
return 0;}