I am a new user in codechef and trying to submit my first program but getting wrong answer after the submission. Also during runtime i am getting the error “no such element exception”. Dont know why but my program is running successfully in the eclipse IDE.
code solution :- https://www.codechef.com/viewsolution/36716510
Kindly help me in this regard.
I tried with try and catch as well.