/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 16ms 2.91 MiB
#2 Wrong Answer 17ms 3.031 MiB

Code

T=int(input())
for i in range(0,T):
    N=int(input())
    A=list(map(int,input().split()))
    if 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:07:05
Judged At
2024-11-11 03:33:26
Judged By
Score
0
Total Time
17ms
Peak Memory
3.031 MiB