PROGRAMMING:Calculate the number of days before New Year's day
Input the year, month and day, and output the total number of days from the new year's day of the year to the date( Hint: leap year refers to the year divisible by 400 or the year divisible by 4 but not 100
###Input format:
Enter n to represent the year, month and day of the next N lines.
Then enter n lines of year, month and day. The elements between year, month and day are separated by spaces. The first data is year, the second data is month, and the third data is day.
###Output format:
If the input date is correct, output: totaldays = days
If the input date is wrong, the output is: errorinput
###Input example:
```in
four
2000 13 10
2000 3 10
2012 3 10
2018 5 20
```
###Output example:
The corresponding output is given here. For example:
```out
ErrorInput
Totaldays = 70
Totaldays = 70
Totaldays = 140
```
answer:If there is no answer, please comment
###Input format:
Enter n to represent the year, month and day of the next N lines.
Then enter n lines of year, month and day. The elements between year, month and day are separated by spaces. The first data is year, the second data is month, and the third data is day.
###Output format:
If the input date is correct, output: totaldays = days
If the input date is wrong, the output is: errorinput
###Input example:
```in
four
2000 13 10
2000 3 10
2012 3 10
2018 5 20
```
###Output example:
The corresponding output is given here. For example:
```out
ErrorInput
Totaldays = 70
Totaldays = 70
Totaldays = 140
```
answer:If there is no answer, please comment