Run ID:62740

提交时间:2023-12-28 17:53:06

#include <iostream> using namespace std; int main(){ int t; cin >> t; while(t--){ int year; cin >> year; if ((year % 4 == 0 && year %100 != 0) || (year % 400 == 0)) cout<<"Yes"<<endl; else cout<<"No"<<endl; } return 0; }