#t237. 判断闰年
判断闰年
Leap Year
Problem Description
Determine whether a given year is a leap year.
Input Format
A single line containing an integer ().
Output Format
A single line: if year (CE) is a leap year, output Y; otherwise output N.
Sample Input
2006
Sample Output
N
Hint
- The leap-year rule is given below — note the extra 3200 clause in this problem.
- The output is the letter
Y/N, not 0 and 1. - Check against the sample:
2006→N.
In the Gregorian calendar, most years divisible by are leap years, but years divisible by yet not by are not leap years, and years divisible by are also not leap years — e.g. is a common year, is a leap year, and is not a leap year.