| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 83923 | sh25_xuws | [在线测评解答教程] 闰年 | C++ | Accepted | 1 MS | 248 KB | 366 | 2026-02-04 01:43:06 |
#include<bits/stdc++.h> using namespace std; bool isrun(int y){ if(y%4!=0) return false; else if(y%100==0&&y%400!=0) return false; return true; } int main() { int n; cin>>n; int year; for(int i=0;i<n;++i){ cin>>year; if(isrun(year)) cout<<"Yes"<<'\n'; else cout<<"No"<<endl; } return 0; }