Run ID:4129

提交时间:2024-08-04 01:25:21

#include <iostream> using namespace std; int main() { int t, n; cin >> t; for (int i = 0; i < t; i++) { cin >> n; if ((n % 400 == 0) || (n % 4 == 0 && n % 100 != 0)) { cout << "YES" << endl; } else { cout << "NO" << endl; } } return 0; }