sshreyansh962's blog

By sshreyansh962, history, 13 months ago, In English

include<bits/stdc++.h>

using namespace std;

int main(){ ios_base::sync_with_stdio(false); cin.tie(NULL); long long int t,n; cin>>t; while(t>0){ cin>>n; if(n%2!=0){ cout<<"YES"; } else if((log(n)/log(2))==(int)(log(n)/log(2))){ cout<<"NO"; } else{ cout<<"YES"; }

cout<<endl;
    t--;
}

}

  • Vote: I like it
  • 0
  • Vote: I do not like it