Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
69651 sh25_wangtaojie [在线测评解答教程] 闰年 C++ 通过 1 MS 248 KB 358 2025-10-11 15:43:29

Tests(11/11):


#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; }


测评信息: