laide_teacher_python/20240702.py

16 lines
207 B
Python
Raw Normal View History

2024-07-12 18:54:25 +08:00
h = int(input())
m = int(input())
s = int(input())
k = int(input())
s += k
if s >= 60:
s = s-60
m += s//60
s = s%60
if m >= 60:
h += m//60
m = m%60
print(h,m,s)