Hello Everyone, I came across the problem named CHOCPAIR. I tried to solve it but failed. I look at @tciitb’s solution. My idea is the same as his. Still, my solution wasn’t accepted. So I followed his code. But still, my code produces the wrong answer. Someone, Please help.
Problem Link : https://www.codechef.com/problems/CHOCPAIR
My solution : https://www.codechef.com/viewsolution/19853908