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