using namespace std; #include #define BEGIN ios_base::sync_with_stdio(0);cin.tie(0); #define END return EXIT_SUCCESS; #define FOR(I,A,B) for(int (I)=(A);(I)<(B);++(I)) #define ALL(C) (C).begin(),(C).end() inline void solve() { int N;cin>>N; vectorA(N+2);FOR(i,0,N)cin>>A[i]; A[N]=-1; A[N+1]=1000000001; sort(ALL(A)); int R=0; FOR(i,1,N+1)if(A[i]!=A[i-1]&&A[i]!=A[i+1])R++; cout<