Advertisement
Derga

Untitled

Feb 27th, 2023
546
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. /*
  2. Задание 3.
  3. */
  4.  
  5. #include <iostream>
  6. #include <cmath>
  7.  
  8. using namespace std;
  9.  
  10. int main() {
  11.     uint64_t m;
  12.     cin >> m;
  13.  
  14.     uint64_t power = 0;
  15.    
  16.     while (pow(4, power + 1) < m) {
  17.         power++;
  18.     }
  19.  
  20.     cout << power;
  21.  
  22.     return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement