Files
python/C++课程/第十四课位运算训练精讲/p164_3.cpp

14 lines
169 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#include<iostream>
using namespace std;
int main()
{
int n = 4095;
int count = 0;
while (n != 0)
{
count++;
n >>= 1;
}
cout << count;
return 0;
}