Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
31600 | 闻航 | 判断闰年 | C++ | Accepted | 0 MS | 252 KB | 224 | 2023-11-19 19:46:10 |
#include<iostream> using namespace std; int main() { int z; cin>>z; if(z%4==0) { cout<<"Y"; } else if(z%400==0) { cout<<"Y"; } else { cout<<"N"; } return 0; }