Shitdroid's blog

By Shitdroid, history, 3 years ago, In English

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?

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

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

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