Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main()
- {
- int t;
- scanf("%d",&t);
- while (t--)
- {
- int n;
- scanf("%d",&n);
- set<int> s;
- while (n--)
- {
- int a;
- scanf("%d",&a);
- s.insert(a);
- }
- printf("%d\n",s.size());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement