10
12
2015
0

[BZOJ1192] [HNOI2006] 鬼谷子的钱袋

水题不想多说了……

#include<cstdio>
#include<cmath>

int s;

int main(){
scanf("%d",&s);
int i,w=1;
for(i=1;;i++){
w*=2;
if(w>s)break;
}
printf("%d\n",i);
return 0;
}
Category: BZOJ | Tags: BZOJ | Read Count: 406

登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter

Host by is-Programmer.com | Power by Chito 1.3.3 beta | Theme: Aeros 2.0 by TheBuckmaker.com