统计天数
Submit solution
Points:
100
Time limit:
1.0s
Memory limit:
32M
Problem types
Allowed languages
C, C++, Java, Python
Description
某工程断断续续做了许多天,先给定日期区间,要求统计所有的天数。
Input
第一个整数N,表示后面有N个成对的日期,格式为“YYYY-MM-DD”。
Output
输出一个整数,表示实际工作天数。
Sample
Input
2
2005-06-07 2005-07-01
2006-02-27 2006-03-05
Output
32
Comments