+ 1

Time Limit Reached

Sometimes I try to program and run it, it says "Time Limit Reached?" What's that?

23rd Sep 2018, 7:20 PM
Quan Huynh
Quan Huynh - avatar
11 Respuestas
+ 2
SL codes run in a protected environment for security and performance reasons. One of this protection is a limit to code run (i dont know exact value of limit) and futhermore sometimes happen without real motivations (server overload? environment bug? i dont know)
23rd Sep 2018, 7:23 PM
KrOW
KrOW - avatar
+ 1
Quan Huynh I think your code might be getting into some infinite loop... I have never seen time limit on sololearn app for code which executes properly without logical error throwing time limit.. check once and share your code link to comment section please to check it once if you wish
24th Sep 2018, 1:37 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
+ 1
Ketan Lalcheta ok here’s mine, I’m making a summary over what I’ve learned and applying it so I can “take it all in.” Hahahah see if u like it https://code.sololearn.com/c82fkhDjx34L/?ref=app
24th Sep 2018, 2:28 AM
Quan Huynh
Quan Huynh - avatar
+ 1
Quan Huynh Not sure but it seems output window has some limitations... if I try to print entire thing in two different times using multiline comments, it works I mean first run for few lines keeping other lines as commented out and then run for remaining lines
24th Sep 2018, 5:20 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
0
How do I fix it?
23rd Sep 2018, 7:24 PM
Quan Huynh
Quan Huynh - avatar
0
What you can do is reduce/remove long running time codes.... You cannot do other
23rd Sep 2018, 7:27 PM
KrOW
KrOW - avatar
0
does this mean getting faster internet?
23rd Sep 2018, 7:28 PM
Quan Huynh
Quan Huynh - avatar
0
oh... my bad.. I won't be able to check this.. I am into c++, not python
24th Sep 2018, 3:00 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
0
haha alright
24th Sep 2018, 4:01 AM
Quan Huynh
Quan Huynh - avatar
0
thanks for saying that, except I'm a beginner and knows nothing of what you said, can you please say that again in simpler words LOL ^.^
24th Sep 2018, 5:22 AM
Quan Huynh
Quan Huynh - avatar
0
comment means that is not going to get executed... multiline comments means more than one lines are not getting executed... try to do ''' and end with ''' after few lines and code will print whatever is there outside this
24th Sep 2018, 5:28 AM
Ketan Lalcheta
Ketan Lalcheta - avatar