曹文信息在线OJ
Home
ProblemSet
Source/Category
Contest
Status
Ranklist
F.A.Qs
Login
Register
2158: 昨天是几号
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:11
Solved:8
Submit
Submit Record
Statistics
Web Board
ShowOff!
Description
给你若干个日期,请编程输出这些日期的前一天的日期。
Input
n+1行。
一行是一个整数,表示有
n
个
日期。
后面
n
行是
n
个
日期。每行有三个整数,分别表示年,月,日。
Output
n行,每行三个整数,每行有三个整数,分别表示年,月,日。中间用空格隔开。
Sample Input
Copy
3 2000 3 30 1997 3 4 2008 7 10
Sample Output
Copy
2000 3 29 1997 3 3 2008 7 9
Source/Category
中级A