Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
32392 | 惠子铭 | [在线测评解答教程] 闰年 | C++ | Accepted | 1 MS | 252 KB | 242 | 2023-12-01 15:00:43 |
#include<bits/stdc++.h> using namespace std; int main(){ int t; cin>>t; while(t--){ int n; cin>>n; if(n%4!=0)cout<<"No\n"; else if(n%100!=0)cout<<"Yes\n"; else if(n%400!=0)cout<<"No\n"; else cout<<"Yes\n"; } }