백준) 2530번 - python
a,b,c = map(int,input().split()) second = int(input()) c += second if c < 60: print(a,b,c) else : b += c // 60 if b < 60 : print(a,b,c % 60) else: a += b // 60 if a < 24: print(a,b % 60,c % 60) else: print(a % 24,b % 60,c % 60)
2024. 3. 18.