Prabhi's blog

By Prabhi, history, 4 years ago, In English

In the latest rated contest i.e., Codeforces Round #632 (Div. 2)

I submitted a solution for question B, Contest link wherein I had declared arrays globally with a size 10^4+10 instead of 10^5+10 and it gave TLE on pretest 3. Here's the link to my submission

However, on submitting the same code with GNU C++14 and GNU C++17, I got the much expected result RE. Here's the link to the RE one

Can anyone explain as to why this happened?

Also, I would like MikeMirzayanov to look into this.

Full text and comments »

  • Vote: I like it
  • +3
  • Vote: I do not like it