提交时间:2023-12-02 18:52:13
运行 ID: 32735
#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"; } }