solutions: 1850A

This commit is contained in:
Muhammad Nauman Raza 2025-01-11 13:45:33 +00:00
parent 56845981af
commit 983d532f94
Signed by: devraza
GPG key ID: 91EAD6081011574B

View file

@ -0,0 +1,16 @@
from itertools import permutations
t = int(input())
for _ in range(t):
nums = [int(c) for c in input().split(' ')]
greater = False
for i in permutations(nums, 2):
if sum(i) >= 10:
print("YES")
greater = True
break
if not greater:
print("NO")