-->
当前位置:首页 > 题库

PROGRAMMING:Leap year judgment

Luz5年前 (2021-05-10)题库572
Problem description
Given a year, judge whether it is a leap year.
This year is a leap year when one of the following conditions is met:
1. The year is a multiple of 4 instead of 100;
2. The year is a multiple of 400.
No other year is a leap year.
###Input format:
The input contains an integer y for the current year. Data scale and agreement 1990 < = y < = 2050.
###Output format:
Output a row, if the given year is a leap year, then output yes, otherwise output No.
Note: when the question specifies that you output a string as the result (for example, yes or no of this question, you need to strictly follow the case given in the question, wrong case will not score.
###Input example:
Here is a set of inputs. For example:
```in
two thousand and thirteen
```
###Output example:
The corresponding output is given here. For example:
```out
no
```







answer:If there is no answer, please comment