#P5711. 【深基3.例3】闰年判断
【深基3.例3】闰年判断
Problem Description
Input a year and determine whether it is a leap year. If it is, output ; otherwise, output .
Since year , the definition of a leap year is:
Common leap year: A Gregorian year that is a multiple of and not a multiple of is a leap year (for example, years and are leap years).
Century leap year: If a Gregorian year is a whole hundred, it must also be a multiple of to be a leap year (for example, year is not a leap year, and year is a leap year).
Input Format
Input a positive integer , representing the year.
Output Format
Output one line. If the input year is a leap year, output ; otherwise, output .
1926
0
1900
0
2000
1
1996
1
Hint
The testdata guarantees that , and the year is a natural number.
Translated by ChatGPT 5