练习专区

今天的一小步就是明天的一大步
Problem 1116 第几天
Accepted: 20   Total Submit: 35
Time Limit: 1000ms   Memory Limit: 30720KB
Description
给出年、月、日,计算该日是该年的第几天。要求计算天数day定义函数int SumDay(int month, int day);判断润年定义函数 int leap (int year);
Input
先输入一个正整数T,表示有T种情况。接着有T行,每行三个正整数year、month、day,被空格隔开,表示年、月、日。
Output
输出该日是该年的第几天。格式见样例。
Sample Input
2
2008 8 8
2011 4 8
Sample Output
2008/8/8 is the 221th day in this year.
2011/4/8 is the 98th day in this year.
Hint
提交     返回