Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
86089 李雨昊 [在线测评解答教程] 闰年 C++ Accepted 1 MS 276 KB 347 2024-07-22 12:50:24

Tests(11/11):


Code:

#include<iostream> #include<cstdio> using namespace std; int main(){ int t; scanf("%d", &t); int a[100000]; for(int i=0;i<t;i++){ cin>>a[i]; } for (int i=0;i<t;i++){ if (a[i]%4==0 && a[i]%100 !=0 || a[i]%400==0){ cout<<"Yes"<<endl; } else{ cout<<"No"<<endl; } } return 0; }