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

백준) 2525번 - python

by kiseno 2024. 2. 11.
728x90
반응형
SMALL
a,b = map(int, input().split(" "))
c = int(input())

if b+c<60:
    print(a,b+c)
else:
    d = a + ((b+c)//60)
    e = (b + c) % 60
    if d >= 24:
        print(d-24,e)
    else:
        print(d,e)

728x90
반응형
LIST

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

백준) 2908번 - python  (1) 2024.02.13
백준) 2884번 - python  (0) 2024.02.12
백준) 2395번 - python  (0) 2024.02.10
백준) 2163번 - python  (0) 2024.02.09
백준) 1546번 - python  (0) 2024.02.08