-
코드
a, b = map(int, input().split(" ")) if a > 0 and b >= 45: print(a, b-45) elif a > 0 and b < 45: print(a-1, 60+b-45) elif a == 0 and b >= 45: print(a, b-45) elif a == 0 and b < 45: print(24+a-1, 60+b-45)
'알고리즘 > 백준' 카테고리의 다른 글
[백준] 10950번 A+B - 3 (파이썬) (0) 2021.12.24 [백준] 2739번 구구단 (파이썬) (0) 2021.12.24 [백준] 14681번 사분면 고르기 (파이썬) (0) 2021.12.24 [백준] 2753번 윤년 (파이썬) (0) 2021.12.24 [백준] 9498번 시험 성적 (파이썬) (0) 2021.12.24