why am i getting wrong judgement in code forces ques-->"1475A",it is runnng right on my pc

Revision en1, by sshreyansh962, 2023-10-20 10:31:21

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--;
}

}

Tags #number theory, maths

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English sshreyansh962 2023-10-20 10:31:21 547 in codeforces its showing yes for 1099511627776 but in my pc i am getting no which is true (published)