Изменения рейтингов за последние раунды временно удалены. Скоро они будут возвращены. ×

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

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

Hey all, Hope you are doing great.

Yesterday, I participated in the Global Round 12 and I had a hard time implementing problem D, but I managed to finish it in time. When I submit, Got TLE on test 2. With only two minutes remaining, I panicked and couldn't figure out the bug. Afterward, I go through the code, and guess what, while precomputation, I accidentally used N(= 3e5 + 5) instead of given n.

Due to this, I missed becoming Blue :(

So, the lesson of the story is "Always use MAXN instead of N" for setting max value.

If any of you have similar experiences, please consider sharing. It will be helpful in avoiding those mistakes in the future.

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

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

Welcome to the world of CP!

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

For D yesterday, I submitted mxN = 10 instead of 3e5 because I was debugging.

Lesson learnt : Always change constraints after debugging!

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

There are so many of this — using long long instead of int, having stdio set to false when you want to use both scanf and cin... The only way to improve is to do more problems, encounter them, and learn from them. Pain is the best teacher :)