求大佬!!
查看原帖
求大佬!!
529957
张琰森楼主2021/7/15 08:19
#include <iostream>
using namespace std;
int main() {
	int n;
	cin >> n;
	int cnt = 0;
	while (n) {
		n >>= 1;
		cnt++;
	}
	cout << cnt;
	return 0;
}

这种对吗?

2021/7/15 08:19
加载中...