1. 문제
https://www.acmicpc.net/problem/2884
2. 풀이
2.1. 풀이1
h, m = map(int, input().split())
print((h-1)%24 if m-45<0 else h,(m-45)%60)
2.2. 풀이2
a,b = map(int, input().split())
x = a*60 + b-45
print(x//60%24,x%60)
https://www.acmicpc.net/problem/2884
h, m = map(int, input().split())
print((h-1)%24 if m-45<0 else h,(m-45)%60)
a,b = map(int, input().split())
x = a*60 + b-45
print(x//60%24,x%60)