Cod sursa(job #334748)
| Utilizator | Data | 27 iulie 2009 22:00:37 | |
|---|---|---|---|
| Problema | Next | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.19 kb |
#include <stdio.h>
int main()
{
long long n,d;
freopen("next.in","r",stdin);
freopen("next.out","w",stdout);
scanf("%lld%lld",&n,&d);
printf("%lld",&d*((n-1)/d));
return 0;
}