Submit | All submissions | Best solutions | Back to list |
EIUPH002 - Leap year |
Leap year is a year which has 366 days. A year is leap year if it divisible by four, except for years that are exactly divisible by 100, but these centurial years are leap years if they are exactly divisible by 400. Given a year n, check if n is leap year or not.
Input
The only integer n (0<=n<=10^9).
Output
Output "YES" if n is leap year, otherwise ouput "NO"
Example
Input: 2016 Output: YES
Added by: | Ha Minh Ngoc |
Date: | 2015-01-28 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | CSHARP C++ 4.3.2 CPP CPP14 JAVA |