[python] 백준 2884번 오답노트

김보현·2024년 5월 27일
0

PS

목록 보기
2/62

time = input().split()
h = int(time[0])
m = int(time[1])

if m >=45:
    m=m-45
    print(h, m)
elif h!=0 & m < 45:
    print(h-1, m-45+60)
else:
    print('23', m-45+60)
profile
Fall in love with Computer Vision

0개의 댓글

관련 채용 정보