提交时间:2023-05-12 14:52:16
运行 ID: 17106
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int a[n+1]; for(int i=1;i<=n;i++){ cin>>a[i]; } for(int i=1;i<=n;i++){ if(a[i]%4==0 && a[i]%100!=0 || a[i]%400==0){ cout<<"Yes"<<endl; }else{ cout<<"No"<<endl; } } }