Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
51475 zhangsicun [在线测评解答教程] 闰年 C++ 解答错误 1 MS 244 KB 397 2024-09-21 23:13:10

Tests(0/11):


#include <bits/stdc++.h> using namespace std; int main() { int a; cin >> a; if (a % 4 == 0) { if (a % 100 == 0) { if (a % 400 != 0) { cout << "N"; } else { cout << "Y"; } } else { cout << "Y"; } } else { cout << "N"; } return 0; }


测评信息: