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

PROGRAMMING:JMU Python judge leap year

Luz5年前 (2021-05-10)题库409
Enter a year to determine whether it is a leap year.
The standard of judging leap year: the year that can be divided by 4 but not 100, or the year that can be divided by 400 is leap year.
###Input format:
Enter a 4-digit year directly without any additional characters.
###Output format:
Output 'year is a leap year' or 'year is not a leap year'`
###Input example:
```in
one thousand and nine hundred
```
###Output example:
```out
1900 is not a leap year
```
###Input example:
```in
one thousand nine hundred and four
```
###Output example:
```out
1904 is a leap year
```
###Input example:
```in
two thousand
```
###Output example:
```out
2000 is a leap year
```






answer:If there is no answer, please comment