提交时间:2021-05-21 22:04:47
运行 ID: 19737
#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<130816) cout<<"4"; if(n>=130816&&n<1062153) cout<<"5"; if(n>=1062153&&n<24231241) cout<<"6"; if(n>=24231241&&n<457758153) cout<<"7"; if(n>=457758153&&n<1000000000) cout<<"8"; cout<<n; return 0; } //6 //28 //496 //8128 //130816 //1062153 //24231241 //457758153