Problems
easyCheck Leap Year
2 Koda Coins

Check Leap Year

easy2s limit💾 64 MB

Description

Determine if a year is a leap year. A year is a leap year if:

1. It is divisible by 4, and

2. If it is divisible by 100, it must also be divisible by 400.


Input Format

  • An integer Y.

  • Output Format

  • YES if Y is a leap year, otherwise NO.