In the latest rated contest i.e., Codeforces Round #632 (Div. 2)
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.