提交时间:2023-08-11 17:47:07
运行 ID: 24396
#include<bits/stdc++.h> using namespace std; int main() { int t,n; scanf("%d",&t); while(t--) { scanf("%d",&n); if(n%100==0) { if(n%400==0) { cout<<"Yes"<<endl; } else { cout<<"No"<<endl; } } else if(n%4==0) { cout<<"Yes"<<endl; } else { cout<<"No"<<endl; } } return 0; }