Hey Guys I just tried the Parade solution , hope you like it , comment if you have any better code .
#include
int main(){
int n,i,a[100000][2],k=0;long int s=0,x,l=0,r=0;
scanf(“%d”,&n);
for(i=0;i
{ k=i+1;s=x;
}
}
printf(“%d”,k);
return 0;
}