solutions: 1850A
This commit is contained in:
parent
56845981af
commit
983d532f94
1 changed files with 16 additions and 0 deletions
16
solutions/to_my_critics.py
Normal file
16
solutions/to_my_critics.py
Normal 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")
|
Loading…
Reference in a new issue