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

Автор EErbium, история, 7 месяцев назад, По-английски

This was my solution with O(n^2) complexity which results in MLE:

https://mirror.codeforces.com/contest/1917/submission/238752759

Here is the solution with a lower complexity:

https://mirror.codeforces.com/contest/1917/submission/239038045

I did not understand what was done in the solution. Can anyone explain?

I read the editorial but can't understand that aswell.

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

»
7 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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

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

Here is my solution easily understandable https://mirror.codeforces.com/contest/1917/submission/271166147