提交时间:2025-10-11 15:43:29
运行 ID: 69651
#include <iostream> using namespace std; int main() { int t; cin >> t; while (t--) { int n; cin >> n; // 判断是否为闰年 if (n % 400 == 0 || (n % 4 == 0 && n % 100 != 0)) { cout << "Yes" << endl; } else { cout << "No" << endl; } } return 0; }