ARRGAME sub task error

Please check my code for ARRGAME question.

link to my solution is :

In one of the Subtask it is showing WA error.

Please help me out.

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.