80分,不道错哪了
查看原帖
80分,不道错哪了
1189340
aishiteru_mitsu_ha楼主2023/12/14 17:57
#include<bits/stdc++.h>
using namespace std;
int main(){
    long long a,cnt=0;
    cin>>a;
    while(1){
        a/=2;
        cnt++;
        if(a<=1){
            break;
        }
    }
    cout<<cnt+1;
    return 0;
}
2023/12/14 17:57
加载中...