본문 바로가기
백준문제/브론즈 4

백준) 2530번 - python

by kiseno 2024. 3. 18.
728x90
반응형
SMALL
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)
728x90
반응형
LIST

'백준문제 > 브론즈 4' 카테고리의 다른 글

백준) 2845번 - python  (0) 2024.03.20
백준) 2742번 - python  (0) 2024.03.19
백준) 2480번 - python  (0) 2024.03.17
백준) 2440번 - python  (0) 2024.03.16
백준) 2083번 - python  (0) 2024.03.15