【題目】 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("平年")
文章標籤
全站熱搜
【題目】 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("平年")