Beakjoon&프로그래머스/파이썬

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

현장 2025. 4. 12. 18:06

-Code

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

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