close


【題目】 https://zerojudge.tw/ShowProblem?problemid=a004


【C】


【C++】


【Python】

import sys
for line in sys.stdin:
    Y=int(line)
    if((Y%4==0) and (Y%100!=0) or (Y%400==0)):
        print("閏年")
    else:
        print("平年")

 

arrow
arrow

    jane8366608 發表在 痞客邦 留言(0) 人氣()