#P0008. 闰年判断
闰年判断
1. Description
The rules to check the leap year are as follows
- A year is a leap year when the number is divisible by 4 (e.g. 1984, 2020)
- A year is a common year when the number is divisible by 100, unless it's also divisible by 400 (e.g. 1900 is common year, 2000 is leap year)
2. Input & Output
Input:
- An integer representing the year
- Use
input()as input. Notice that the value you get frominput()is a string
Ouptut:
- A string
TrueorFalse - Use
print()for your output
Example
# Input:
100
# Output:
False
# Input:
2000
# Output:
True