#include<bits/stdc++.h>
using namespace std;
int t;
int main(){
	freopen("num.in","r",stdin);
	freopen("num.out","w",stdout);
	cin>>t;
	while(t--){
		int n;
		cin>>n;
		if(n==1||n%2||(!n%4)) cout<<"YES"<<endl;
		else cout<<"NO"<<endl;
	}
	return 0;
} 

1 条评论

  • @ 2025-11-14 15:22:28

    输入 5×1065\times 10^6 个整数,每个数 99 位,这样输入量就有 4.5×1074.5\times 10^7 了,得开 ios::sync_with_stdio(false);cin.tie(nullptr); 然后把 endl 改成 '\n' 加速读写才行。

    • 1