Advertisement
a53

expoN

a53
Dec 6th, 2021
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. unsigned int n,e=0;
  7. unsigned long long int p=1;
  8. cin>>n;
  9. while(p*2<=n)
  10. p*=2,++e;
  11. cout<<e<<'\n';
  12. return 0;
  13. }
  14.  
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement