Code
#include <stdio.h>
int main()
{
int n,i,year,month,day;
int days[12]= {31,28,31,30,31,30,31,31,30,31,30,31};
while(scanf("%d",&n)!=EOF)
{
while(n--)
{
int ans = 0;
scanf("%d %d %d",&year,&month,&day);