nd22225   2년 전

H,M= map(int, input().split())

if 0 <= H <= 23 and 0 <= M <= 59:

if 45>M>=0:

H-=1

if H<0:

H=23

M+=15

else:

M-=45

print(H,':',M)

else:

print("error")

댓글을 작성하려면 로그인해야 합니다.