I am getting wrong answer in Break up problem from ZCO , i tried many test cases and i don’t find any test case which gives wrong answer
I even checked for silly mistakes
It’s printing 4 on the codechef ide. Possibly undefined behaviour, or the linked code is an old solution. Here’s my solution if you want to compare answers