Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
4509 HUMPAomg [在线测评解答教程] 闰年 C++ Accepted 0 MS 272 KB 261 2024-08-20 21:41:59

Tests(11/11):


Code:

#include <bits/stdc++.h> using namespace std; long long c,a1,a2,s,t,n,a,b; double d; int main(){ cin>>n; for(int i=1;i<=n;i++){ cin>>t; if(t%4==0 and t%100!=0 or t%400==0){ cout<<"Yes"<<endl; }else{ cout<<"No"<<endl; } } return 0; }