HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Unsorted > problem:


Leap Year

Section problems

• GCF
• REVERSE ORDER OF WORDS
• Factorial
• Maximum
• Name-Surname
• Decimal to binary
• Heap
• Herons
• Leap Year
• Perfect numbers
• Rectangle
• Bfs
• Chess
• Big Dance
• Binary to decimal
• Circle
• City Tour

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 200/200/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.

Leap years are years with an extra day (February 29); this happens almost every four years. Generally, leap years are divisible by four, but century years are special, they must also be divisible by 400. Given a year decide whether it is a leap year or not.

Input: An integer for year value.

Output: "IT IS A LEAP YEAR" or "IT IS NOT A LEAP YEAR".

cin
cout
1988 IT IS A LEAP YEAR
1989 IT IS NOT A LEAP YEAR
1900 IT IS NOT A LEAP YEAR
2000 IT IS A LEAP YEAR
Для отправки решений необходимо выполнить вход.

www.contester.ru