[Python] 백준 2525번 오븐 시계
업데이트:
백준 2525번
A, B = map(int, input().split())
C = int(input())
A += C // 60
B += C % 60
if B >= 60:
A += 1
B -= 60
if A >= 24:
A -= 24
print(A,B)
업데이트:
A, B = map(int, input().split())
C = int(input())
A += C // 60
B += C % 60
if B >= 60:
A += 1
B -= 60
if A >= 24:
A -= 24
print(A,B)
댓글남기기