文件名称:hdoj-1201
介绍说明--下载内容均来自于网络,请自行研究使用
Problem Descr iption
Gardon的18岁生日就要到了,他当然很开心,可是他突然想到一个问题,是不是每个人从出生开始,到达18岁生日时所经过的天数都是一样的呢?似乎并不全都是这样,所以他想请你帮忙计算一下他和他的几个朋友从出生到达18岁生日所经过的总天数,让他好来比较一下。
Input
一个数T,后面T行每行有一个日期,格式是YYYY-MM-DD。如我的生日是1988-03-07。
Output
T行,每行一个数,表示此人从出生到18岁生日所经过的天数。如果这个人没有18岁生日,就输出-1。
Sample Input
1
1988-03-07
Sample Output
6574
-Problem Descr iption Gardon of the 18th birthday is coming, and he of course very happy, but he suddenly thought of a question, is not every individual from birth to reach the 18th birthday when the number of days after all the same? Does not seem to have all of this, so he would like you to help calculate what he and several of his friends from birth through to reach 18th birthday by the total number of days, let him look good to compare. Input a number T, T-line behind each line has a date format is YYYY-MM-DD. If my birthday is 1988-03-07. Output T Bank, one per line, indicating that the person from birth to 18 years the number of days elapsed birthday. If this person is not 18th birthday, the output of-1. Sample Input 1 1988-03-07 Sample Output 6574
Gardon的18岁生日就要到了,他当然很开心,可是他突然想到一个问题,是不是每个人从出生开始,到达18岁生日时所经过的天数都是一样的呢?似乎并不全都是这样,所以他想请你帮忙计算一下他和他的几个朋友从出生到达18岁生日所经过的总天数,让他好来比较一下。
Input
一个数T,后面T行每行有一个日期,格式是YYYY-MM-DD。如我的生日是1988-03-07。
Output
T行,每行一个数,表示此人从出生到18岁生日所经过的天数。如果这个人没有18岁生日,就输出-1。
Sample Input
1
1988-03-07
Sample Output
6574
-Problem Descr iption Gardon of the 18th birthday is coming, and he of course very happy, but he suddenly thought of a question, is not every individual from birth to reach the 18th birthday when the number of days after all the same? Does not seem to have all of this, so he would like you to help calculate what he and several of his friends from birth through to reach 18th birthday by the total number of days, let him look good to compare. Input a number T, T-line behind each line has a date format is YYYY-MM-DD. If my birthday is 1988-03-07. Output T Bank, one per line, indicating that the person from birth to 18 years the number of days elapsed birthday. If this person is not 18th birthday, the output of-1. Sample Input 1 1988-03-07 Sample Output 6574
(系统自动生成,下载前可以参看下载内容)
下载文件列表
hdoj-1002-18岁生日.rtf