I was going through ‘All Submissions’ of the problem with code: COOLING (https://www.codechef.com/problems/COOLING).
I found a submission by ‘blackpanther’ (https://www.codechef.com/viewsolution/7866286).
I couldn’t understand the logic behind the code, and so I submitted it to see how could it work!
I got WA with the same solution (https://www.codechef.com/viewsolution/18605583)
Am just a little confused, as to how is this possible?