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)
이 블로그는 무료로 제공되고 있으며,
광고 수익은 제가 치킨을 먹는 데 큰 도움이 됩니다! 🍗
광고 차단을 해제해주시면 더 맛있는 치킨을... 아니,
더 좋은 콘텐츠를 제공할 수 있습니다! 😊
💡 Tip: 치킨 한 마리가 제 한 달 광고 수익입니다 😂
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)