A. Bigger, Stronger
Hint 1
for a sequence to be strictly increasing, no two elements can be equal. Therefore, if there are any duplicate elements in the array, it is impossible to rearrange the array to make it strictly increasing.
Solution
Use a set to keep track of unique elements while iterating through the array. If, at any point during the iteration, an element is found to already exist in the set, it means there is a duplicate, and the answer is "NO." If the iteration completes without finding any duplicates, the answer is "YES."
Code
t = int(input())
for _ in range(t):
nums = list(map(int,input().split()))
seen = set()
possible = True
for i in nums:
if i in seen:
possible = False
seen.add(i)
if possible:
print("YES")
else:
print("NO")