#include <bits/stdc++.h> using namespace std; #define IOS ios::sync_with_stdio(false), cin.tie(0); typedef long long LL; //const int N=; int n; void solve() { cin>>n; if(n&1){cout<<"NO\n"; return ;} else cout<<"YES\n"; } int main() { IOS int T; cin>>T; while(T--) solve(); return 0; }
很显然的事情就是,奇数都没有偶数因子。偶数一定有偶数因子2
因为奇数*奇数=奇数,奇数*偶数=偶数,偶数*偶数=偶数