diff --git a/solutions/to_my_critics.py b/solutions/to_my_critics.py new file mode 100644 index 0000000..50b8eee --- /dev/null +++ b/solutions/to_my_critics.py @@ -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")