CF304B.Calendar
普及-
通过率:0%
时间限制:2.00s
内存限制:256MB
AC君温馨提醒
该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。
题目描述
Calendars in widespread use today include the Gregorian calendar, which is the de facto international standard, and is used almost everywhere in the world for civil purposes. The Gregorian reform modified the Julian calendar's scheme of leap years as follows:
Every year that is exactly divisible by four is a leap year, except for years that are exactly divisible by 100; the centurial years that are exactly divisible by 400 are still leap years. For example, the year 1900 is not a leap year; the year 2000 is a leap year.

In this problem, you have been given two dates and your task is to calculate how many days are between them. Note, that leap years have unusual number of days in February.
Look at the sample to understand what borders are included in the aswer.
当今广泛使用的日历包括公历(格里高利历),它是事实上的国际标准,几乎在全世界所有地区都用于民用目的。公历改革对儒略历的闰年规则作了如下修改:
- 凡能被 4 整除的年份为闰年,但能被 100 整除的世纪年份除外;然而,能被 400 整除的世纪年份仍为闰年。例如,1900 年不是闰年;2000 年是闰年。

本题中,你将获得两个日期,任务是计算它们之间相隔的天数。注意:闰年的 2 月天数异常。
请参考样例以明确答案所包含的边界。
输入格式
The first two lines contain two dates, each date is in the format yyyy:mm:dd (1900 ≤ yyyy ≤ 2038 and yyyy:mm:dd is a legal date).
前两行包含两个日期,每个日期的格式均为 yyyy:mm:dd(其中 1900 ≤ yyyy ≤ 2038,且 yyyy:mm:dd 是一个合法的日期)。
输出格式
Print a single integer — the answer to the problem.
输出一个整数——该问题的答案。
输入输出样例
输入#1
1900:01:01 2038:12:31
输出#1
50768
输入#2
1996:03:09 1991:11:12
输出#2
1579
输入解题思路,AI测评打分。不知道怎么写?