Problem C: 计算两个日期之间的天数
[Creator : ]
Description
给定两个日期,请计算相差的天数。比如 2010-1-1\text{2010-1-1}2010-1-1 和 2010-1-3\text{2010-1-3}2010-1-3 相差 222 天。
Input
共两行:
第一行包含三个整数 startYearstartYearstartYear,startMonthstartMonthstartMonth,startDaystartDaystartDay,分别是起始年、月、日。
第二行包含三个整数 endYearendYearendYear,endMonthendMonthendMonth,endDayendDayendDay,分别是结束年、月、日。
相邻两个整数之间用单个空格隔开。
年份范围在 1∼30001\sim 30001∼3000。保证日期正确且结束日期不早于起始日期。
第一行包含三个整数 startYearstartYearstartYear,startMonthstartMonthstartMonth,startDaystartDaystartDay,分别是起始年、月、日。
第二行包含三个整数 endYearendYearendYear,endMonthendMonthendMonth,endDayendDayendDay,分别是结束年、月、日。
相邻两个整数之间用单个空格隔开。
年份范围在 1∼30001\sim 30001∼3000。保证日期正确且结束日期不早于起始日期。
Output
输出一个整数,即是两个日期相差的天数。
Sample 1 Input
2008 1 1
2009 1 1
Sample 1 Output
366