백준 2884번| Python - 알람시계
풀이
h, m = map(int, input().split())
if m < 45 and h > 0:
print(h-1, 15+m)
elif m >= 45:
print(h, m-45)
else:
print(23, 15+m)
h, m = map(int, input().split())
if m < 45 and h > 0:
print(h-1, 15+m)
elif m >= 45:
print(h, m-45)
else:
print(23, 15+m)