Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
31626 | 闻航 | 判断闰年 | C++ | Accepted | 0 MS | 240 KB | 345 | 2023-11-19 20:40:49 |
#include<iostream> using namespace std; int main() { int y; cin>>y; if (y % 4 == 0) { if (y % 100 == 0) { if (y % 400 == 0) cout << "Y" << endl; else cout << "N" << endl; } else cout << "Y" << endl; } else cout << "N" << endl; return 0; }