Gym - 101810C ACM International Collegiate Programming Contest (2018)

bryce1010模板
http://codeforces.com/gym/101810

#include <bits/stdc++.h>

using namespace std;
#define ll long long
ll lowbit(ll x)
{
    return  x&(-x);
}


int main()
{
    ll t;
    cin>>t;
    ll x;
    while(t--)
    {
        cin>>x;
        ll res=1;
        while((x&1)==0)
        {
            x>>=1;
            res++;
        }
        cout<<res<<endl;
    }
    return 0;
}

posted @ 2018-07-29 15:48  Bryce1010  阅读(123)  评论(0编辑  收藏  举报