11562 - 231001_9/21_practice2-1
|
Time |
Memory |
| Case 1 |
1 sec |
32 MB |
| Case 2 |
1 sec |
32 MB |
| Case 3 |
1 sec |
32 MB |
| Case 4 |
1 sec |
32 MB |
Description
Write a program to determine if the input year is a leap year (閏年). A year is a leap year if it is divisible by 4 but not divisible by 100, OR if it is divisible by 400. The program should take an integer (y) as the input year, and test if y is a leap year or not.
Input
An integer number n
Output
If the year is a leap year, print "n is a leap year." or print "n is not a leap year." Remember put a "\n" at the end of the answer.
Tags