본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 25830번 Microwave Mishap

by 현장 2023. 11. 27.

-Code

m, s = map(int, input().split(":"))
input_time = m * 60 + s
real_time = m * 3600 + s * 60

res = real_time - input_time

print(f"{res // 3600:0>2}:{res % 3600 // 60:0>2}:{res % 60:0>2}")