请大神指导,为什么过不了哇?
查看原帖
请大神指导,为什么过不了哇?
897279
lhwjy楼主2022/12/10 11:38
#include<bits/stdc++.h>
using namespace std;
int main(){
	int n,c=0;
	cin>>n;
	while(n!=1){
		c++;
		floor(n/=2);
	}
	
	cout<<c;

	return 0;
}

2022/12/10 11:38
加载中...