알고리즘
[백준 2525] [Python] 오븐 시계
wjxor
2024. 4. 2. 21:34
반응형
문제 링크
https://www.acmicpc.net/problem/2525
문제
코드
H, M = map(int, input().split())
time = int(input())
H += time // 60
M += time % 60
if (M >= 60) :
H += 1
M -= 60
if (H >= 24) :
H -= 24
print(H, M)
반응형