B. Calendar
time limit per test
memory limit per test
input
output
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.
Input
1900 ≤ yyyy ≤ 2038
Output
Print a single integer — the answer to the problem.
Sample test(s)
input
1900:01:01 2038:12:31
output
50768
input
1996:03:09 1991:11:12
output
1579
直接模拟,要考虑同一年,同年同月,同年同月同日(0),后面的日期靠前等情况