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: 152, Accepted users: 136
Problem 10500 : No special judgement
Problem description
  编写一个时间类,实现时间的加、减、读和输出。

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

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

Sample Input
15 5 10 5 45 40
20 12 50 10 55 40
Sample Output
15:5:10+5:45:40=20:50:50
15:5:10-5:45:40=9:19:30
20:12:50+10:55:40=7:8:30
20:12:50-10:55:40=9:17:10
Submit   Clarifications   Judge Status  Problems  Ranklist 

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