提交时间:2024-11-08 15:27:25
运行 ID: 55793
#include<bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; int k[a]; for(int i=0;i<a;i++){ cin>>k[i]; } for(int i=0;i<a;i++){ if(k[i]%4==0&&k[i]%100!=0||k[i]%400==0){ cout<<"Yes"<<endl; } else{ cout<<"No"<<endl; } } return 0; }