Start: Dec, 27, 2015 17:15:00
2015年秋学期《程序设计基础》第三次上机考试
End: Dec, 27, 2015 20:45:00
Time elapsed:
Time remaining:

闰年和平年 1836

Time Limit:  1 s      Memory Limit:   128 MB
Submission:493     AC:153     Score:1

Description

cyn小朋友最近上小学啦,今天学习的是闰年和平年的区别,mwy老师给他布置了几道课后习题,你能帮cyn验证一下他的答案是否正确吗?(主函数代码部分已经写好,只需写函数部分,如果提交的不是c语言则需要提交全部代码)

#include<stdio.h>
int isLeap(int *x);
int main()
{
int t,n;
scanf("%d",&t);
while(t--)
{
int n;
scanf("%d",&n);
printf("%d ",isLeap(&n));
}
}

Input

第一行输入一个T,表示有T组数据。
接下来有T行,每行只有一个整数n(1 <= n <= 9999),代表那年的年份。

Output

对于每一个n,输出当年的总天数

Samples

input
3 1999 2999 2000
output
365 365 366