본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 29863번 Arno's Sleep Schedule

by 현장 2023. 12. 25.

-Code

sleep = int(input())
time = int(input())

if 20 <= sleep < 24:
    print(24 - sleep + time)
else:
    print(time - sleep)