Run ID:65762

提交时间:2024-02-09 18:52:56

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