#P132. 练22.1 闰年与平年
练22.1 闰年与平年
Description
As we all know, a leap year occurs every four years. However, calculating one leap year every four years would result in approximately 3.12 extra days over 400 years. Therefore, it is stipulated that century years must be divisible by 400 to be leap years. This is commonly known as: a leap year every four years, except for century years, which are leap years only if divisible by 400.
Write a program that takes a year as input and determines whether it is a common year or a leap year.
Input Format
A single line containing a year.
Output Format
Output whether it is a common year or a leap year, as shown in the sample output.
Sample
20202020 is a leap year
Related
In following homework: