| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 67385 | jdf25_wangchs | [在线测评解答教程] 闰年 | C++ | Accepted | 1 MS | 252 KB | 538 | 2025-09-17 17:44:03 |
#include <iostream> using namespace std; bool isLeapYear(int year) { if (year % 4 != 0) { return false; } else if (year % 100 != 0) { return true; } else if (year % 400 == 0) { return true; } else { return false; } } int main() { int t; cin >> t; while (t--) { int n; cin >> n; if (isLeapYear(n)) { cout << "Yes" << endl; } else { cout << "No" << endl; } } return 0; }