A. [R15A]现在几点

    Type: Default 1000ms 512MiB

[R15A]现在几点

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.

时空限制

1S/512M

题目描述

Jianglyxxyy 分开始了一场持续了 tt 分钟的比赛,求比赛结束的时间。

提示:一天有 2424 小时,每小时有 6060 分钟,每天的第一分钟是 0000 分,最后一分钟是 23235959 分。

格式

输入格式

第一行包含三个整数 x,y,tx,y,t,含义与题目描述相同。

输出格式

输出两个整数表示比赛结束的时间,第一个整数表示时,第二个整数表示分。

样例

样例输入 #1

9 0 300

样例输出 #1

14 0

样例输入 #2

22 59 62

样例输出 #2

0 1

数据规模

对于 100%100\% 的数据,0x230\leq x\leq 230y590\leq y\leq 591t1061\leq t\leq 10^6

代码源挑战赛 Round 15

Not Attended
Status
Done
Rule
DMY
Problem
6
Start at
2025-6-6 20:00
End at
2025-6-6 21:30
Duration
1.5 hour(s)
Host
Partic.
579