Nerde Nolzda

ZeroJudge: a005 Eva 的回家作業

ZeroJudge Link (Zh)

#include <stdio.h>

main() {
  int year;
  while(scanf("%d", &year) != EOF) {
    printf("%s\n", (year % 4 == 0 && year % 100 != 0 || year % 400 == 0) ? "閏年" : "平年");
  }
  return 0;
}

Related Posts

0 comments

Post a comment

Send an email to comment@nerde.pw.