LOSTMAX: problem with codechef IDE.

Codechef IDE shows TLE when I submit my solution to problem LOSTMAX in LTIME50, but online judge accepted it.
Here is link to my solution: https://www.codechef.com/viewsolution/14726838 .
I didn’t submitted my solution earlier, hence I got less rank.

because CodeChef’s IDE does’nt consider ‘\n’ at the end of line in custom input. Your for loop


was running as infinite loop.

1 Like