Leap Year Simple
Computer Mathematics
Easy
4 views
Problem Description
Given year y, print YES if it is a leap year.
Input Format
One integer y.
Official Solution
Leap year if divisible by 400, or divisible by 4 but not by 100.
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!