+ 1
Time Limit Reached
Sometimes I try to program and run it, it says "Time Limit Reached?" What's that?
11 Réponses
+ 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)
+ 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
+ 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
+ 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
0
How do I fix it?
0
What you can do is reduce/remove long running time codes.... You cannot do other
0
does this mean getting faster internet?
0
oh... my bad.. I won't be able to check this.. I am into c++, not python
0
haha alright
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 ^.^
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