curious about TLE

Does getting a TLE mean that my program produced correct output for all possible test cases and the only problem is that it took a lot of time to do that or does it mean that the program produced correct output of only those test cases that it could process in time limits??? Please help

If your code is giving TLE then it doesn’t mean it is correct but takes too long.

TLE simply means you exceeded the time limit. Your program never finished running in time - so Codechef has no idea whether it was going to print out the right results or not!

So, if a code is giving TLE you need to think about a better logic. (Remember Loops are Mr x that require real attention) :slight_smile:

1 Like

ok thanks, that cleared the doubt…

If it answered your question mark it as an answer.

even an infinite loop can cause tle…