About TLE | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

About TLE

Can a time limit exceeded error be handled using the try except statements so that you can look how far the code has progressed ? And is it possible to raise a time limit exceeded if so how to do that would like to know that :) https://code.sololearn.com/cN3j3A37Cgn4/?ref=app

3rd Nov 2018, 9:23 PM
Mbrustler
Mbrustler - avatar
4 Answers
+ 3
Exactly. The code is sent to the server and if the execution takes it longer than 5 seconds... pop! TLE is raised.
3rd Nov 2018, 9:42 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 4
The time limit is put in place in order to save the server capacity. The time period is fixed to 5 seconds and can't be raised.
3rd Nov 2018, 9:33 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 1
Kuba Siekierzyński does that mean that its impossible to excecute code after a time limit?
3rd Nov 2018, 9:35 PM
Mbrustler
Mbrustler - avatar
+ 1
well if there is no other way then i have to try something else thank you Kuba Siekierzyński
3rd Nov 2018, 9:44 PM
Mbrustler
Mbrustler - avatar