BlueBook
Given a year
, month
, and day
(depends
on what month it is, but will be correct input), output how many days it
has been since the beginning of the year.
Be sure to take care of leap years! The year is a leap year.
Input Specification
Line : One integer
denoting the number of test cases.
Lines : Three integers
,
,
.
Output Specification
Lines : One integer denoting how many days have passed since
the beginning of the year.
Sample Input
2
1990 1 1
1992 3 1
Sample Output
1
61
Comments