闰年.c 232 B

1234567891011121314
  1. #include <stdio.h>
  2. int main() {
  3. int year;
  4. scanf("%d", &year);
  5. if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)) {
  6. printf("YES\n");
  7. } else {
  8. printf("NO\n");
  9. }
  10. return 0;
  11. }