Source Code
#include <iostream>
using namespace std; 


int main() {
 long long m;

 long long n; 
 cin>> n; 
 long long k[n]; 
 for(long long i=0; i<n;i++){ 
   cin>> k[i]; 
 }
 for(long long j=0; j<n;j++){ 

if(k[0]==k[j]){ m=j+1;}

 }

 cout<<m;
}
Copy
Good Segment LaYaN
GNU G++17
76 ms
2.6 MB
Wrong Answer