Wrong Answer
Code
T=int(input())
for i in range(0,T):
N=int(input())
A=list(map(int,input().split()))
if len(set(A))==N and sorted(A)==list(range(1,N+1)):
print("Yes")
else:
print("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 16:34:22
- Judged At
- 2024-11-11 03:33:00
- Judged By
- Score
- 0
- Total Time
- 17ms
- Peak Memory
- 3.246 MiB