提交时间:2024-08-19 15:19:57
运行 ID: 166743
#include <bits/stdc++.h> using namespace std; int main() { int n,x; cin >> n; bool f; for (int i = 1;i<=n;i++) { cin >> x; f=true; 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) { } else { f=false; } } if (f) { cout << "yes" << endl; } else { cout << "no" << endl; } } return 0; }