Toggle navigation
YouTube
Facebook
Telegram
english
english
українська
Algotester 4.3
Build 496
2024-10-17
Log In
Contact Us
College
Sponsors
Donate
Sources
Python 3
from itertools import permutations a = [] for i in range(2): a.append(list(map(int, input().split()))) ans = False for b in permutations(a[0]): if all([b[i] <= a[1][i] for i in range(3)]): ans = True print("Yes" if ans else "No")