WA in TRAINSET

My Solution not accepted by Codechef.
Can anyone help me on that.Thnaks in advance
https://www.codechef.com/viewsolution/29659964

Your code fails on the same testcase as this one.

1 Like