백준 34798번: Missed Alarm #Python

ColorlessDia·2026년 2월 13일

algorithm/baekjoon

목록 보기
818/836
def time_to_second(HH, MM):
    return (int(HH) * 60) + int(MM)

T1 = time_to_second(*input().split(':'))
T2 = time_to_second(*input().split(':'))

if T1 <= T2:
    print('YES')
else:
    print('NO')

0개의 댓글