#P5711. 【深基3.例3】闰年判断

【深基3.例3】闰年判断

Problem Description

Input a year and determine whether it is a leap year. If it is, output 11; otherwise, output 00.

Since year 15821582, the definition of a leap year is:

Common leap year: A Gregorian year that is a multiple of 44 and not a multiple of 100100 is a leap year (for example, years 20042004 and 20202020 are leap years).

Century leap year: If a Gregorian year is a whole hundred, it must also be a multiple of 400400 to be a leap year (for example, year 19001900 is not a leap year, and year 20002000 is a leap year).

Input Format

Input a positive integer nn, representing the year.

Output Format

Output one line. If the input year is a leap year, output 11; otherwise, output 00.

1926
0
1900
0
2000
1
1996
1

Hint

The testdata guarantees that 1582n20201582 \leq n \leq 2020, and the year is a natural number.

Translated by ChatGPT 5