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

Tests(0/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"; }else{ cout<<"No"; } } return 0; }


Run Info:

------Input------
3 2887 1778 1916
------Answer-----
No No Yes
------Your output-----
NoNoYes