My issue
My code
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t;
cin>>t;
while(t--){
int n=0;
cin>>n;
int count=0;
int A[n];
for(int i=0;i<n;i++){
cin>>A[i];
}
for(int i=0;i<n;i++){
if(A[i]==A[0]) count++;
else{break;}
}
cout<<n-count<<endl;
}
return 0;
}
Problem Link: BROKPHON Problem - CodeChef