题解 | 时间转换
时间转换
https://www.nowcoder.com/practice/c4ae7bcac7f9491b8be82ee516a94899
sec = int(input())
time_units = [3600, 60, 1]
part = []
for t in time_units:
if sec>=t:
part.append(str(sec//t))
sec = sec%t
else:
part.append(str(0))
print(' '.join(part))


