Welcome   HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online
Home
FAQs
Problem Set
Practices
Online Contests
Major Exercises
OI Special
Judgement
Submit
Online Status
User Ranklist
Users
Register new
Login
Web Links
Hunan Normal University
College of Information Science and Engineering
求两个日期之间相差的天数
Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB
Total submit users: 189, Accepted users: 170
Problem 10498 : No special judgement
Problem description
  设计一个日期类Date,包括日期的年份、月份和日号,编写一个友元函数,求两个日期d1,d2之间相差的天数d2-d1。

Input
  输入数据有若干组。每组数据一行,有六个整数,表示两个日期d1,d2,格式为:年月日。

Output
  对于每一组数据,输出两个日期d1,d2之间相差的天数, 格式参照样例输出。

Sample Input
2000 1 1 2002 10 1
2010 1 10 2010 3 20
Sample Output
2002/10/1-2000/1/1=1004
2010/3/20-2010/1/10=69
Submit   Clarifications   Judge Status  Problems  Ranklist 

HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online, Version 2010.5.5.final.
Web visits:2154 today,16258881 total, since 2010-05-07