+ 2
Time exceeded
sometimes the code doesn't compile fully. it shows "time limit exceed"... what should I do make the code compile full... thx
2 Réponses
+ 10
Are you referring to your newest code? It may be short, but the lines in the for loops execute several thousand times, which takes a long time to execute!
SoloLearn's servers halt your code early if it runs for too long. I would recommend using an IDE on a computer, where time isn't an issue, or setting a smaller cap for input. Or perhaps try a different algorithm.
+ 5
Use an IDE/different compiler.
If execution lasts to long CodePlayground will cut it off. Also make sure there's no infinite loops or that your code can be cut down.