Cod sursa(job #171339)
Utilizator | Data | 4 aprilie 2008 01:17:06 | |
---|---|---|---|
Problema | Next | Scor | 10 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.22 kb |
#include<stdio.h>
int main()
{
unsigned long long n,d,m,c,r;
freopen("next.in","r",stdin);
freopen("next.out","w",stdout);
scanf("%llu%llu",&n,&d);
c=n/d;r=n%d;
if(r) c++;
m=c*d;
printf("%llu",m);
return 0;
}