fork download
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4.  
  5. int main() {
  6. long double N;
  7. cin>>N;
  8. int res = (int)(log2(N))+1;
  9. cout<<res;
  10. }
Success #stdin #stdout 0s 16064KB
stdin
1000000000
stdout
30