提交时间:2023-12-01 15:00:43
运行 ID: 32392
#include<bits/stdc++.h> using namespace std; int main(){ int t; cin>>t; while(t--){ int n; cin>>n; if(n%4!=0)cout<<"No\n"; else if(n%100!=0)cout<<"Yes\n"; else if(n%400!=0)cout<<"No\n"; else cout<<"Yes\n"; } }