您当前处于兼容模式。某些功能在此模式下不可用。我们强烈建议在现代浏览器上切换为标准模式以获得更好的体验。 标准模式 隐藏

#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)
这题到底怎么写啊!!!

2 条评论

  • 1

信息

ID
5558
时间
ms
内存
MiB
难度
9
标签
(无)
递交数
1491
已通过
149
上传者