返回列表 發帖
  1. from sys import stdin
  2. try:
  3.     while True:
  4.         a=int(input())
  5.         if a%4==0 and a%100!=0 or a%400==0:
  6.             print("閏年")
  7.         else:
  8.             print("平年")
  9. except EOFError:
  10.     pass
複製代碼

TOP

返回列表