WA in ZCO12001

@ssjgz Bro can you help ?
https://www.codechef.com/viewsolution/32142820

Your solution fails on the same testcase as this one :slight_smile:

Edit:

Though probably for a different reason.

sorry to disturb but can you give smaller test case than this ? please
i am getting 3 23 10 21 which is correct i have compared the answer with your program given in that thread.

1 Like

Oh, sorry - my mistake - I gave you the wrong test input entirely :slight_smile:

Try this (smaller) one instead:

10
1 1 1 2 1 1 2 2 2 2
1 Like

Bro you are just awesome
love you #nohomo

1 Like