提交时间:2021-05-21 22:07:22

运行 ID: 19739

#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n>=0&&n<6) cout<<"0"; if(n>=6&&n<28) cout<<"1"; if(n>=28&&n<496) cout<<"2"; if(n>=496&&n<8128) cout<<"3"; if(n>=8128&&n<33550336) cout<<"4"; if(n>=33550336&&n<8589869056) cout<<"5"; if(n>=8589869056&&n<1000000000) cout<<"6"; return 0; } //6 //28 //496 //8128 //130816 //1062153 //24231241 //457758153