Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
84061 sh25_linzx [在线测评解答教程] 闰年 C++ 通过 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; }


测评信息: