2 Antworten
+ 9
If you get time limit exceeded, try another method of reading input. TLE error in the code...how to solve? It means the program you are using is doing more computations than expected. Usualy, loops that goes upto 106-10^7 are acceptable with 1-2s time limit.
see more information from this site:
**https://discuss.codechef.com/t/why-do-i-get-a-time-limit-exceeded/1771**