A = year
When the current year is not equal to 0, a = 1 and the year = 0, a = 0;;
The following judgment is wrong.
These two lines of code are completely unnecessary. Let's judge by the year.