Cod sursa(job #218765)
Utilizator | Data | 3 noiembrie 2008 15:29:25 | |
---|---|---|---|
Problema | Next | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.26 kb |
#include<stdio.h>
unsigned long n,m,d;
void calc()
{
int c;
c=n/d;
m=(c+1)*d;
}
int main()
{
freopen("next.in","r",stdin);
freopen("next.out","w",stdout);
scanf("%lu%lu", &n,&d);
calc();
printf("%lu",m);
return 0;
}