Is it a leap year


Submit solution

Points: 10
Time limit: 1.0s
Memory limit: 64M

Authors:
Problem type
Allowed languages
Java 19, Java 8

題目說明

使用者輸入西元年,判斷是否為閏年

閏年判斷:4的倍數是閏年,每百年不閏,每四百年為一閏,每四千年不閏

本題無部份給分

sample input1

2000

sample output1

True

sample input2

2001

sample output2

False

Comments

There are no comments at the moment.