-Code
a1, b1 = map(int, input().split(":"))
b2, a2 = map(int, input().split(":"))
print("YES" if a1 >= b2 and b1 >= a2 else "NO")
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 29991번 Fatigue-Fighting Vacation (0) | 2025.04.14 |
---|---|
[백준/파이썬] 27251번 Звездочки (0) | 2025.04.13 |
[백준/파이썬] 20571번 Elevators (0) | 2025.04.11 |
[백준/파이썬] 33779번 Back and Forth (0) | 2025.04.10 |
[백준/파이썬] 24867번 Два станка (0) | 2025.04.09 |