作业统计

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.

Description

为了了解学生的课后作业负担情况,需要统计学生连续若干天完成作业所需的总时间。现在,输入某位学生n天完成作业的时间,格式为时、分、秒,最后输出这位学生n天完成作业的总时间(秒)。

Format

Input

第1行一个正整数n,表示有n天;

第2~第n+1行,每行3个整数,分别代表时、分、秒。

Output

一行信息,表示这个学生完成作业的总时间,具体格式见输出样例。

Samples

3
1 20 30
1 20 45
1 19 30
4hour 0minute 45second

Limitation

1s, 256MB for each test case.

杨梓皓、苏泓瑜、胡梦宸训练题单

Not Claimed
Status
Done
Problem
38
Open Since
2026-5-19 19:00
Deadline
2026-5-31 23:59
Extension
24 hour(s)