Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
9 admin [在线测评解答教程] 闰年 C++ 通过 0 MS 284 KB 319 2024-12-10 20:22:03

Tests(11/11):


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


测评信息: