Code
for _ in range(int(input())):
n = int(input())
s = set(list(map(int, input().split())))
print("YES" if ((len(s) == n) and (max(s) == n)) else "NO")
Information
- Submit By
- Type
- Submission
- Problem
- P1055 Array Permutation
- Contest
- Brain Booster #3
- Language
- Python 3 (Python 3.12.3)
- Submit At
- 2024-05-06 15:05:32
- Judged At
- 2024-11-11 03:35:16
- Judged By
- Score
- 100
- Total Time
- 24ms
- Peak Memory
- 3.109 MiB