https://i2.wp.com/eblogarithm.com/wp-content/uploads/2016/11/CodeForces-Round-378-Div-2-problem-B-Parade-Solution-In-C1.png?fit=640%2C360

CodeForces Round #378 (Div. 2), problem: (B) Parade Solution In C

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;is)
{ k=i+1;s=x;
}
}
printf(“%d”,k);

return 0;
}

(Visited 48 times, 1 visits today)



There are no comments

Add yours

Leave a Reply

%d bloggers like this: