1D kingdom

I’m getting wrong answer for 3rd task inside subtask #1.
I have tried all different possible inputs and I am getting the correct answers also but it still says wrong answer for 3rd task in subtask #1.

it shows correct for tak #1 and task #2 on codechef but wrong for task #3

same here :frowning:

Same here