Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
83923 sh25_xuws [在线测评解答教程] 闰年 C++ 通过 1 MS 248 KB 366 2026-02-04 01:43:06

Tests(11/11):


#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; }


测评信息: