Is Leap Year or not?
題目說明
使用者輸入一值,判斷是否為閏年
閏年判斷標準如下:
每四年一閏,每百年不閏,每四百年為一閏,每四千年不閏
輸入限制: 均>=0
輸入
值
輸出
True/False
Sample input1
2015
Sample output1
False
Sample input2
2000
Sample output2
True
Sample input3
4000
Sample output3
False
Comments