//
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long k,ans;
while( cin>>k )
{
ans=1;
while( (k&1)==0 )
{
ans++; k>>=1;
}
cout<<ans<<endl;
}
return 0;
}
// 二进制形式的最低位1
// 001 1
// 010 2
// 011 1
// 100 3
// 101 1
// 110 2
// 111 1
nowcoder_岸风翻夕浪,舟雪洒寒灯_思维
猜你喜欢
转载自blog.csdn.net/qq_63173957/article/details/124782414
今日推荐
周排行