2014年7月10日 星期四

UVA - 11384, Help is needed for Dexter

水題BJ4


 1 #include <iostream>

 2 #include <cstdio>

 3 #include <cstdlib>

 4 #include <cmath>

 5 using namespace std;

 6 int main(){

 7     int n;

 8     while(scanf("%d", &n) != EOF){

 9         printf("%d\n", (int)log2(n)+1);   

10     }

11 return 0;

12 }


...

沒有留言:

張貼留言

TEST