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