https://www.acmicpc.net/problem/2884
# 문제 정리
h 의 범위는 0 - 23, m 의 범위는 0 - 59 이다.
# 문제 해결을 위한 개념
# 정답 코드
h, m = map(int, input().split())
if m < 45:
if h == 0:
h = 23
print(h, m+15)
else:
print(h-1, m+15)
else:
print(h,m-45)
'코딩테스트 > 백준' 카테고리의 다른 글
백준 2439 별 찍기-2 [Python] (0) | 2024.10.28 |
---|---|
백준 25314번 코딩은 체육과목 입니다 [Python] (1) | 2024.10.28 |
백준 25304번 영수증 [Python] (0) | 2024.10.27 |
백준 8393 합 [Python] (0) | 2024.10.27 |
백준 2525 오븐시계 [Python] (0) | 2024.10.27 |