Enjoy celebration

Enjoy celebration
Time Limit:1sMemory limit:32M
Accepted Submit:148Total Submit:351

 

 

Fuzhou University is the national 211 Project focused on building universities, founded in 1958, has become one one of the Fujian Provincial key university which is mainly Polytechnic combination of science, engineering, economic and management, literature, law, arts and other multidisciplinary coordinated development. This year's October 25 is the 50th anniversary celebration of the school.
Now, your task is to help the group of teachers who are busy preparing for the celebration calculate the left time to the nearest celebration.

Input

 

The first line is a positive number N (N <= 2000), N indicates the number of test data. The following N lines, each line has three positive integer, Y, M, D that were year, month, day time respectively, the three integers are separated by a space, we guarantee the date is legitimate(1958<= Y <= 3000).

 

Output

 

According to input data, you must calculate the left time to the nearest celebration. If the most recent session celebration is N, the left time to the nearest celebration is M, so we must output:
“M days left for celebrating the Nth anniversary of the founding of Fuzhou University!” (quotes for clarity only).

 

Sample Input

3 
2008 10 24 
2008 10 25 
2008 10 26 

Sample Output

1 days left for celebrating the 50th anniversary of the founding of Fuzhou University!
0 days left for celebrating the 50th anniversary of the founding of Fuzhou University!
364 days left for celebrating the 51th anniversary of the founding of Fuzhou University!
http://acm.fzu.edu.cn/problem.php?pid=1605
 
 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值