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: 278, Accepted users: 264
Problem 10496 : No special judgement
Problem description
  定义一个满足如下要求的Date类。

1)用下面的格式输出日期:日//

2)可运行在日期上加一天操作;

3)设置日期。

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

Output
  对于每一组数据,输出日期,日期加一天后,再输出日期,均需要用类的成员函数实现。

Sample Input
20 1 2010
31 12 2002
29 2 2008
Sample Output
20/1/2010
21/1/2010
31/12/2002
1/1/2003
29/2/2008
1/3/2008
Submit   Clarifications   Judge Status  Problems  Ranklist 

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