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

PROGRAMMING:Find the number of leap years

Luz5年前 (2021-05-10)题库443
According to the current calendar (Gregorian calendar): every four years a leap, every hundred years do not leap, every 400 years leap again.
That is: if the number of years is a multiple of 4 and not 100, or if the number of years is a multiple of 400, it is a leap year, and the rest are normal years.
Please write a program to input the year $$y $$and calculate the total number of leap years from $$1 $$A.D. to $$y $$.
####Input format
> $$y$$
####Output format
> $$n$$
####Input sample
```in
one thousand nine hundred and ninety-five
```
####Output sample
```out
four hundred and eighty-three
```







answer:If there is no answer, please comment