#include
int main ()
{
int m[100],b,a,sum[100]={0},c;
int i,n;
scanf("%d",&n);
for (i=0;i
scanf("%d%d%d",&a,&b,&c);
if (a%4==0&&a%100!=0 ||a%400==0)
{
if (b==1)
printf("%dn",c);
if (b==2)
printf("%dn",31+c);
if (b==3)
printf("%dn",31+29+c);
if (b==4)
printf("%dn",31+29+31+c);
if (b==5)
printf("%dn",31+29+31+30+c);
if (b==6)
printf("%dn",31+29+31+30+31+c);
if (b==7)
printf("%dn",31+29+31+30+31+30+c);
if (b==8)
printf("%dn",31+29+31+30+31+30+31+c);
if (b==9)
printf("%dn",31+29+31+30+31+30+31+31+c);
if (b==10)
printf("%dn",31+29+31+30+31+30+31+31+30+c);
if (b==11)
printf("%dn",31+29+31+30+31+30+31+31+30+31+c);
if (b==12)
printf("%dn",31+29+31+30+31+30+31+31+30+31+30+c);
}
else
{
if (b==1)
printf("%dn",c);
if (b==2)
printf("%dn",31+c);
if (b==3)
printf("%dn",31+28+c);
if (b==4)
printf("%dn",31+28+31+c);
if (b==5)
printf("%dn",31+28+31+30+c);
if (b==6)
printf("%dn",31+28+31+30+31+c);
if (b==7)
printf("%dn",31+28+31+30+31+30+c);
if (b==8)
printf("%dn",31+28+31+30+31+30+31+c);
if (b==9)
printf("%dn",31+28+31+30+31+30+31+31+c);
if (b==10)
printf("%dn",31+28+31+30+31+30+31+31+30+c);
if (b==11)
printf("%dn",31+28+31+30+31+30+31+31+30+31+c);
if (b==12)
printf("%dn",31+28+31+30+31+30+31+31+30+31+30+c);
}
}
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)