Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
67374 | jdf25_wangchs | [在线测评解答教程] 闰年 | C++ | 解答错误 | 0 MS | 244 KB | 288 | 2025-09-17 17:25:52 |
#include<iostream> using namespace std; int main() { int n, t; for(int j = 1;j <= n;j++) { if((j % 4 == 0 && j % 100 != 0)||j % 400 == 0) { cout<<"Yes"<<endl; return 0; } } cout<<"No"<<endl; return 0; }