| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 9 | admin | [在线测评解答教程] 闰年 | C++ | Accepted | 0 MS | 284 KB | 319 | 2024-12-10 20:22:03 |
#include <iostream> using namespace std; int main() { int t, n; cin >> t; for (int i = 0; i < t; i++) { cin >> n; if (n % 100 == 0 && n % 400 == 0) { cout << "Yes" << endl; } else if (n % 100 != 0 && n % 4 == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } } }