7 solutions

  • 0
    @ 2025-12-27 19:07:37

    暴力简单解法 #include #include #include using namespace std; int main(){ int n; cin>>n; while(n--){ long long int a; cin>>a; for(int i=0;i<1e2;i++){ if(pow(2,i)a){ cout<<"YES"<<endl; break; } if(i1e2-1) cout<<"NO"<<endl; } } return 0; }

    Information

    ID
    47
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    8
    Tags
    # Submissions
    1663
    Accepted
    267
    Uploaded By