PY
2024-10-26 19:31:53
发布于:浙江
0阅读
0回复
0点赞
T=int(input())
def can_be_strictly_increasing(sequence):
sorted_sequence = sorted(sequence)
for i in range(1, len(sorted_sequence)):
if sorted_sequence[i] == sorted_sequence[i - 1]:
return False
return True
for _ in range(T):
n = int(input())
sequence = list(map(int, input().split()))
if can_be_strictly_increasing(sequence):
print("YES")
else:
print("NO")
这里空空如也
有帮助,赞一个