Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
84061 sh25_linzx [在线测评解答教程] 闰年 C++ Accepted 1 MS 256 KB 345 2026-02-06 22:03:52

Tests(11/11):


#include<iostream> using namespace std; bool isrun(int y){ if(y%4!=0) return false; else if(y%100==0&&y%400!=0) return false; else return true; } int main(){ int a,y; cin>>a; for(int i=0;i<a;++i){ cin>>y; if(isrun(y)) cout<<"Yes"<<endl; else cout<<"No"<<endl; } return 0; }


Judgement Protocol: