Leap Year

View as PDF

Submit solution

Points: 3
Time limit: 2.0s
Memory limit: 64M

Author:
Problem type

A Leap Year is any year which satisfies one of the following conditions:

  • The year is a multiple of 4, 100 and 400.
  • The year is a multiple of 4 but not a multiple of 100.

Given a year, determine if it is a Leap Year. You may copy and paste the following Python function to check if a number is a multiple of another.

def is_multiple(number, factor):
  return number % factor == 0

Input Specification

The only line of input is an integer less then 10^9 representing the year.

Output Specification

If the year is a Leap Year, print Leap Year, otherwise print Common Year.

Sample Input

2020

Sample Output

Leap Year

Comments

There are no comments at the moment.