Prateek Loves Candy

TLE ?
What is wrong in my code? The same code ran successfully and was giving correct output in Eclipse IDE.

TLE ? What is wrong in my code? The same code ran successfully and was giving correct output in Eclipse IDE.