Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
7346 | xingru | 判断闰年 | C++ | Accepted | 0 MS | 244 KB | 165 | 2023-02-03 18:02:39 |
#include<bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; if((a%4==0||a%100>0)&&(a%400==0)){ cout<<"Y"; } else cout<<"N"; return 0; }