- 不平凡的数
TLE代码
- @ 2025-10-24 20:27:49
#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 条评论
-
Furina_JS @ 2025-11-26 11:05:38你需要使用快读
- 1
信息
- ID
- 5558
- 时间
- ms
- 内存
- MiB
- 难度
- 9
- 标签
- (无)
- 递交数
- 1488
- 已通过
- 149
- 上传者
京公网安备 11011102002149号