Code
#include<bits/stdc++.h>
using namespace std;
#define ll long long
int main(){
int t;cin>>t;
while (t--)
{
int n;cin>>n;
set<int>a;
for(int i=0;i<n;i++){
int k;cin>>k;
a.insert(k);
}
if(a.size()==n) cout<<"YES"<<endl;
else cout <<"NO"<<endl;
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1055 Array Permutation
- Contest
- Brain Booster #3
- Language
- C++20 (G++ 13.2.0)
- Submit At
- 2024-05-06 15:10:20
- Judged At
- 2024-11-11 03:35:04
- Judged By
- Score
- 100
- Total Time
- 3ms
- Peak Memory
- 340.0 KiB