+ 6

Time limit exceeded

why my code showing time limit exceeded at last when I am keeping i value 69 in line number 47. then it is printing all but when I value 72 to print all group matches then it is printing at last time exceeded https://code.sololearn.com/cpF8XLd8xuNK/?ref=app

20th Jun 2018, 10:25 AM
कामेश
कामेश - avatar
6 Respuestas
+ 6
kamesh shekhar prasad your code is written correct. But if you want it work properly on sololearn you need some optimization.
20th Jun 2018, 10:40 AM
Sharofiddin
Sharofiddin - avatar
+ 5
It normally worked in eclipse. "Time reached" my be sololearn issue. Double for gets a lot of time to compile.
20th Jun 2018, 10:33 AM
Sharofiddin
Sharofiddin - avatar
+ 4
kamesh shekhar prasad It's because the time allowed for a program to execute is limited, somewhere around 0.1 seconds, I think.
20th Jun 2018, 5:57 PM
LunarCoffee
LunarCoffee - avatar
+ 3
thanks a lot I will try
20th Jun 2018, 10:42 AM
कामेश
कामेश - avatar
+ 3
LunarCoffee ya I realised that I am trying to compress my code
20th Jun 2018, 5:58 PM
कामेश
कामेश - avatar
+ 1
Sharofiddin then is it limitations on solo learn compiler to print a limited number of lines or it is issue of more number of variables I declared.
20th Jun 2018, 10:34 AM
कामेश
कामेश - avatar