Baekjoon Case

[파이썬 / 백준 2884번] 알람 시계

Scarlett_C 2021. 11. 11. 12:51
728x90

https://www.acmicpc.net/problem/2884

H,M=map(int,input().split())
if M-45<0:
    M+=15
    H-=1
else: M-=45
if H<0:
    H=23

print(H,M)
728x90