提交时间:2024-08-19 15:16:15

运行 ID: 166709

#include <bits/stdc++.h> using namespace std; int main() { int n,x; cin >> n; for (int i = 1;i<=n;i++) { cin >> x; for (int i= 2;i <= n-2;i+=2) { double j=x*1.0-i; int k=j; if (j/2==k/2*1.0) { cout << "yes" << endl; } else { cout << "no" << endl; } } } return 0; }