10
12
2015
0

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

水题不想多说了……

bzoj 1192
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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: 427

登录 *


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