Run ID:4134
提交时间:2024-08-04 01:44:03
#include <stdio.h> int main() { int t, n; scanf("%d", &t); while (t--) { scanf("%d", &n); if ((n % 400 == 0) || (n % 4 == 0 && n % 100 != 0)) { printf("YES\n"); } else { printf("NO\n"); } } return 0; }