Year 2000 is a leap year
Input
2000
Output
True
2000 is divisible by 400, so it's a leap year.
Full lesson preview
Determine whether a given year is a leap year following Gregorian rules.
Problem statement
Task
Examples
Input
2000
Output
True
2000 is divisible by 400, so it's a leap year.
Input format
Output format
Constraints
Samples
Input
1900
Output
False
1900 is divisible by 100 but not by 400, so it's not a leap year.