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

[백준/파이썬] 29667번 Ответный матч

by 현장 2025. 4. 12.

-Code

a1, b1 = map(int, input().split(":"))
b2, a2 = map(int, input().split(":"))

print("YES" if a1 >= b2 and b1 >= a2 else "NO")