Codeforces Round #697 (Div. 3) A. Odd Divisor

http://codeforces.com/problemset/problem/1475/A

 

(n&(n-1))==1说明这个数有因子为奇数

//
// Created by w on 2021-01-28.
//

#include <iostream>
#include <cstring>
using namespace std;
typedef long long ll ;
int main()
{
    int t;
    cin>>t;
    while (t--)
    {
        ll n;
        cin>>n;
        if((n&(n-1)))
            cout<<"yes"<<'\n';
        else
            cout<<"no"<<'\n';
    }
    return 0;
}

 

posted @ 2021-01-28 00:32  BlackSnow  阅读(51)  评论(0)    收藏  举报