Is it a leap year?
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Determine if a given year is a leap year.
A year qualifies as a leap year if it is divisible by 4, but not divisible by 100, unless it is also divisible by 400.
Input Data
The input consists of a single integer N
, where 0 ≤ N
≤ 9999, representing the year.
Output Data
Print YES if the year is a leap year, otherwise print NO.
Examples
Input #1
Answer #1
Submissions 10K
Acceptance rate 36%