#B3971. True Leap Year
True Leap Year
True Leap Year
A given year (y) is called a true leap year if and only if it satisfies the following conditions:
- If \(y\) is not a multiple of 4, then it is not a true leap year.
- If \(y\) is a multiple of 4 but not a multiple of 100, then it is a true leap year.
- If \(y\) is a multiple of 100 but not a multiple of 400, then it is not a true leap year.
- If \(y\) is a multiple of 400 but not a multiple of 3200, then it is a true leap year.
- If \(y\) is a multiple of 3200 but not a multiple of 172800, then it is not a true leap year.
- If \(y\) is a multiple of 172800, then it is a true leap year.
inputFormat
The input consists of a single integer (y) representing the year.
outputFormat
Output true
if the given year (y) is a true leap year; otherwise, output false
.
sample
2020
true