- 不平凡的数
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 comments
-
Furina_JS @ 2025-11-26 11:05:38你需要使用快读
- 1
Information
- ID
- 5558
- Time
- ms
- Memory
- MiB
- Difficulty
- 9
- Tags
- (None)
- # Submissions
- 1488
- Accepted
- 149
- Uploaded By
京公网安备 11011102002149号