#18877: 新手的解題嘗試


python_noob (python_noob)


# 引入 system,可以使用 stdin,例如
# import sys

# 從 stdin 裡每次讀取一行,存在類別為 str 的變數 s 裡,例如
# for s in sys.stdin:
    
    # 取得年份,例如
    # year = int(s)
    
    # (可被4整除(year % 4 == 0) 且 不可被 100 整除(year % 100 != 0)) 或 可被 400 整除(year % 400 == 0)
    # 在 Python 中,and 的優先權比 or 高

    '''
    if(year % 4 == 0 and year % 100 != 0 or year % 400 == 0):
        print("閏年")
    else:
        print("平年")

    '''