From 983d532f9481febaec2c3d4874214021c9e45f5b Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Sat, 11 Jan 2025 13:45:33 +0000 Subject: [PATCH] solutions: 1850A --- solutions/to_my_critics.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 solutions/to_my_critics.py 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")