I suspect there is something wrong with the codechef's judge.

I was trying to solve the Warmholes problem.

Below are the link to my to submissions for the Warmhole problem, both the solutions are exact same. But still got different results in test cases.
@admin Kindly look into this issue and let me know what’s wrong.

Submission-1

Submission-2

judge has some issues regarding input i guess, as my code runs successfully for given test case on other ide. whereas judge is taking garbage value for all integers ans printing some 1k lines output instead of 2 line.