[GESP202406 一级] 1. 休息时间
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
小杨计划在某个时刻开始学习,并决定在学习 k 秒后开始休息。
小杨想知道自己开始休息的时刻是多少。
输入格式
前三行每行包含一个整数,分别表示小杨开始学习时刻的时 h、分 m、秒 s(h,m,s 的值符合 1<h≤12,0≤m≤59,0≤s≤59)。
第四行包含一个整数 k,表示小杨学习的总秒数(注:k 的值符合 1≤k≤3600)。
输出格式
输出一行,包含三个整数,分别表示小杨开始休息时刻的时、分、秒。
样例
12
59
59
10
13 0 9
提示
小杨在时刻 12:59:59 开始学习,学习 10 秒后开始休息,即在 13:0:9 时刻开始休息。
C++ GESP 2024年6月 一级
- Status
- Done
- Rule
- OI
- Problem
- 3
- Start at
- 2024-8-16 19:00
- End at
- 2024-8-25 3:00
- Duration
- 200 hour(s)
- Host
- Partic.
- 38