提交时间:2023-06-20 08:08:26
运行 ID: 20767
#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; } } }