#include <bits/stdc++.h>
using namespace std;
int main () {
int x;
cin>>x;
for(int i=0;i<x;i++) {
int n;cin>>n;
set<int> l;
int h;
for(int j=0;j<n;j++){
cin>>h;
l.insert(h);
}
cout<<l.size()<<endl;
}
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.