For the problem Calvins game(INOI 1301),
If you download the official test cases from https://www.iarcs.org.in/inoi/2013/inoi2013/calvinsgame-data.zip (which I believe are the same ones that codechef uses). If you open test case 02 input file, you will notice that it begins with 173 173978 which is simply not possible since in this question 1 <= k <= n. But, If you insert a space between 173 and 978, the code will run as expected. I tried test case 4 on my computer and it gave the expected output. Is it really possible that the test cases were flawed ?
Am I just being paranoid or could the INOI 2013 results actually be flawed since they used the same test cases to judge students ?
I have attached some screenshots to help you better understand the situation : https://www.codechef.com/viewsolution/16695616 https://drive.google.com/open?id=1wO4NgC7SUnXwxb8oyOPHArEm2HLwEWSM