#include<bits/stdc++.h>
using namespace std;
int main(){
    int n,x;
    freopen("num.in","r",stdin);
    freopen("num.out","w",stdout);
    cin>>n;
    while(n--){
        cin>>x;
        if(x%2==1||x%4==0) cout<<"YES"<<endl;
        else cout<<"NO"<<endl;
    }
}
``
不是,这怎么还TLE了呢,时间复杂度 O(n)
这题到底怎么写啊!!!

1 comments

  • @ 2025-11-26 11:05:38

    你需要使用快读

    • 1

    Information

    ID
    5558
    Time
    ms
    Memory
    MiB
    Difficulty
    9
    Tags
    (None)
    # Submissions
    1488
    Accepted
    149
    Uploaded By