TLE due to printing output

Правка en1, от mm944, 2019-04-01 05:47:23

Hi guys, I'm new to CodeForces, but I enjoy it a lot, recently I have stumbled upon a problem and was wondering if anyone could help me. I was solving a problem using an algorithm with O(n)[1 <= n <= 10^5], however when I submitted it, I got TLE, it was weird, as I was not using any while loops that could get stuck and wasn't using any libraries, my code was composed of 3 for loops. I checked the test case and the output was quite large, and all I could think of is that printing the output was time-consuming(which is still weird, because I need to output less than 10^5 lines), I use PascalABC/FreePascal, because I enjoy it, but this is quite annoying. What would you recommend to do, switch to another language, or there is another issue and output has nothing to do with it. It happened to several problems, but here's the last one, thank you!

https://mirror.codeforces.com/contest/1062/submission/52135801

Теги tle, output, free pascal, pascalabc

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский mm944 2019-04-01 05:47:23 937 Initial revision (published)