Cod sursa(job #220305)
Utilizator | Data | 10 noiembrie 2008 14:21:36 | |
---|---|---|---|
Problema | Next | Scor | 10 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.2 kb |
#include<stdio.h>
unsigned long long n,d;
int main()
{
freopen("next.in","r",stdin);
freopen("next.out","w",stdout);
scanf("%llu%llu", &n,&d);
int c=n%d;
printf("%llu",n+d-c);
return 0;
}