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