Something Terrible Happened in CF Global round 12

Правка en1, от Candidate_noob, 2020-12-07 06:53:22

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. Afterwards, 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.

Теги #general advise, #contest

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en5 Английский Candidate_noob 2020-12-07 07:53:50 49
en4 Английский Candidate_noob 2020-12-07 06:55:18 0 Tiny change: 'g great.\nYesterda' -> 'g great.\n\nYesterda' (published)
en3 Английский Candidate_noob 2020-12-07 06:54:21 2 Tiny change: 'g great.\nYesterda' -> 'g great.\n\nYesterda'
en2 Английский Candidate_noob 2020-12-07 06:54:04 6
en1 Английский Candidate_noob 2020-12-07 06:53:22 707 Initial revision (saved to drafts)