完全刷存在
#include <cstdio>
int m,t = -1,cz;
int main () {
scanf("%d",&m);
while((m -= (1 << ++t)) >= 0) {
++cz;
if(m == 0) {
printf("%d\n",cz);
return 0;
}
}
printf("%d\n",++cz);
}
完全刷存在
#include <cstdio>
int m,t = -1,cz;
int main () {
scanf("%d",&m);
while((m -= (1 << ++t)) >= 0) {
++cz;
if(m == 0) {
printf("%d\n",cz);
return 0;
}
}
printf("%d\n",++cz);
}