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

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

The submission is here: 265738238

I do not think that I use significant stack memory here, it is mostly heap memory. Also I have cloned to the mashup to test with 2GB memory limits and got exactly the same result.

The code is pretty clear in my opinion but I will be happy to clarify if asked.

Thanks for your interest.

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

»
2 года назад, скрыть # |
← Rev. 2  
Проголосовать: нравится +2 Проголосовать: не нравится

You seem to have WA on a testcase, because putting the following if statement in the middle makes the code not RE but WA.

if (l < 1 || l > n || r < 1 || r > n || r < l) {
  return;
}

So, the RE is probably due to a wrong value of last.

»
2 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Auto comment: topic has been updated by Seferoglu (previous revision, new revision, compare).