Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
61167 | laichihao | [在线测评解答教程] 闰年 | C++ | Accepted | 1 MS | 260 KB | 236 | 2025-02-22 15:43:09 |
#include<iostream> using namespace std; int main() { int t; cin>>t; for(int i=1;i<=t;i++){ int n; cin>>n; if(((n%4==0)&&(!(n%100==0)))|n%400==0){ cout<<"Yes"; } else{ cout<<"No"; } cout<<endl; } }