๐ง Algorithm/Baekjoon๐ก
๐ก2525๋ฒ
4:Bee
2023. 12. 6. 07:00
728x90
๋ด๊ฐ ์์ฑํ ์ฝ๋๋ ์๋์ ๊ฐ๋ค.
H, M = map(int, input().split())
C = int(input())
MC = (M + int(C))
print(f"check : {MC}")
if 60 <= MC:
H += (int(MC / 60))
if 60 < MC:
print("check")
M = MC % 60
else:
M = MC
if H == 24:
H = 0
print(H, M)
# print(int(M / 60))
๊ต์ฅํ ์ ๊ฐํ์ง ๋ชปํ๋ค.
์ ๋ต์ ์๋์ ๊ฐ๋ค.
H, M = map(int, input().split())
timer = int(input())
H += timer // 60
M += timer % 60
if M >= 60:
H += 1
M -= 60
if H >= 24:
H -= 24
print(H, M)
728x90