Priyansh31dec's blog

By Priyansh31dec, history, 3 years ago, In English

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

  • Vote: I like it
  • -68
  • Vote: I do not like it

| Write comment?
»
3 years ago, # |
  Vote: I like it +44 Vote: I do not like it

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

  • »
    »
    3 years ago, # ^ |
      Vote: I like it +6 Vote: I do not like it

    Ok now I am not watching that YT video.

    • »
      »
      »
      3 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      I mean you never know maybe you find something that would actually interest you on the channel because I sure did.

  • »
    »
    3 years ago, # ^ |
      Vote: I like it +5 Vote: I do not like it

    Thanks, you saved my time

»
3 years ago, # |
  Vote: I like it +8 Vote: I do not like it

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

»
3 years ago, # |
  Vote: I like it +3 Vote: I do not like it

Thank you so much Priyansh !