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

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

So yesterday, at the Div 3 contest in the problem D I committed a mistake where I took the array range 10^5 instead of 2*10^5. So, when we want to access the element outside the range it should crash causing an RTE. But it gave a verdict TLE. I submitted the same code after changing the range giving me an AC so its clearly array out of bound situation. Why did this happen?

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

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

Generally array out of bounds is UB or undefined behavior. so it can lead to rte, wa, tle, etc.