Run ID:93446

提交时间:2024-10-15 21:32:50

#include <bits/stdc++.h> using namespace std; int y[]; int main() { int n; cin >> n; for (int i = 1; i <= n; i++) cin >> y[i]; for (int i = 1; i <= n; i++) { if(y[i] % 4 == 0 && y[i] % 100 != 0 || y[i] % 400 == 0) cout << "yes" << endl; else cout << "no" << endl; } return 0; }