ARRGAME sub task error

Please check my code for ARRGAME question.

link to my solution is : CodeChef: Practical coding for everyone

In one of the Subtask it is showing WA error.

Please help me out.

1 Like

Read the editorial, you have taken only one condition

if(numOfZeroSegment > 1) {
	if((segmentLenMax % 2) && (segmentLenSecondMax < ((segmentLenMax+1)/2))) {
		cout << "Yes\n"; // Nayeon wins
	}
	else cout << "No\n";
}

I am unable to get the second condition.
Could you please explain it?

Think about 1000100001

Now, it’s showing Runtime error.