@ssjgz Bro can you help ?
https://www.codechef.com/viewsolution/32142820
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
Try this (smaller) one instead:
10
1 1 1 2 1 1 2 2 2 2
1 Like