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

Автор Priyansh31dec, история, 4 года назад, По-английски

I personally had a hard time fixing those unnecessary time limit exceeded errors when I was starting out in Competitive Programming. Now, I know most of the time what happens is that the algorithm that we are using is totally fine for the constraints given in the question but still we do get those TLEs every now and then. One main reason for this is the slow manner in which we output. This is not very common here on CodeForces as the time limits are not that strict but being able to output a lot of stuff in a fast manner is always advantageous.

So, I thought why not just make a video where I explain why this type of TLEs occur and how you can fix them without making a lot of changes in your code. Also, I know that most of the people would already be aware of what I am discussing in this video so just telling you beforehand that this video is specifically for beginners and particularly for the ones who code in C++.

You can check out the video here: https://www.youtube.com/watch?v=dLMyTMuB95Y

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

»
4 года назад, # |
  Проголосовать: нравится +44 Проголосовать: не нравится

Come on, rename your blog to something like "endl is slow".

»
4 года назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

Thanks for this. There are surely some cases where this genuinely helps. Also, great content on the YT channel :)

»
3 года назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

Thank you so much Priyansh !