| Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|---|
| 443811 | 任虞昊 | [在线测评解答教程] 闰年 | C++ | 通过 | 100 | 1 MS | 252 KB | 438 | 2026-06-06 22:11:38 |
#include <iostream> using namespace std; int main() { int t; cin >> t; while (t--) { int year; cin >> year; bool is_leap = false; if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)) { is_leap = true; } if (is_leap) { cout << "Yes" << endl; } else { cout << "No" << endl; } } return 0; }