提交时间:2026-05-15 15:34:33

运行 ID: 88713

#include <iostream> using namespace std; int main() { int t, year; cin >> t; while (t--) { cin >> year; if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)) { cout << "Yes" << endl; } else { cout << "No" << endl; } } return 0; }