#include using namespace std; typedef long long ll; #define INF 0x7fffffff mapmp; int c[100100]; int main() { std::ios::sync_with_stdio(false); int t,n,sum,h; cin>>t; while(t--) { mp.clear(); sum=1; cin>>n; for(int i=0;i>c[i]; mp[c[i]]++; if(mp[c[i]]>=2) { mp.clear(); mp[c[i]]=1; sum++; } } cout<