Cod sursa(job #218770)
Utilizator | Data | 3 noiembrie 2008 15:38:17 | |
---|---|---|---|
Problema | Next | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.27 kb |
#include<stdio.h>
unsigned long 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("%llu%llu", &n,&d);
calc();
printf("%llu",m);
return 0;
}