Блог пользователя mm944

Автор mm944, история, 5 лет назад, По-английски

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

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится