백준 알고리즘/python
[ 2884 ] 알람 시계
power-girl0-0
2021. 2. 28. 03:09
728x90
H,M = map(int, input().split())
if(M<45):
if(H==0):
H=23
M+=60
else:
H-=1
M+=60
print("%d %d"%(H,M-45))
728x90