水题不想多说了……
#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; }
水题不想多说了……
#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; }
Host by is-Programmer.com | Power by Chito 1.3.3 beta | Theme: Aeros 2.0 by TheBuckmaker.com