提交时间:2024-04-20 12:31:09
运行 ID: 45814
#include<bits/stdc++.h> using namespace std; int main() { int t; cin>>t; while (t--) { int a; cin>>a; if(a%400==0||a%4==0&&a%100!=0) cout<<"Yes"<<endl; else cout<<"No"<<endl; } return 0; }