1 / 5
Jun 2018

It means all test results is true but time is too long
or the machine stopped running when the time limit is exceeded and no more test is executed?
Some problem result is points 0…100, what does it mean?

  • created

    Jun '18
  • last reply

    Jun '18
  • 4

    replies

  • 1.7k

    views

  • 2

    users

  • 2

    links

The Time Limit Exceeded (aka TLE) is one of the most common errors among competitive programmers.

Generally, the root cause of the error is that your program does not generate all the results (according to the hidden test cases) in the stipulated time. It either takes a very long or an infinitely long amount of time to end.

This can happen due to various reasons such as time complexity of your algorithm (generally most naive approaches get a TLE error), your program might not print any result at all thus the compiler waits infinitely, your program control may have fallen in an infinite loop, your program might be reading input and output too slow, generally avoid using Scanner in Java. Also in case of TLE, it is not guaranteed that whether the solution was correct or not. There is also no way of knowing how many more seconds it could have taken to finish.

For detailed information you can refer these resources below:
TLE | HackerEarth13
What does TLE mean? | Stack Overflow14

TLEs can be the most irritating errors to debug. But the happiness of getting the green tick after fixing the TLEs is simply inexplicable.

#HappyCoding. :smiley:

Thanks :slight_smile:
In case the result is points from 0 to 100, is that the percent of test cases that the code run corectly?

Well that suggests that there were hidden test cases worth 100 points out of which your current score is zero. So apparently you were not able to pass any test case. So yeah, zero percent in this case.

12 days later