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

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

Hey , Can anyone please tell how to solve D of today's atcoder beginner contest

Link here

How to efficently brute it ?

Any help will be appreciated

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

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

Hey! I'm one of the writer in ABC 123, and I'll explain solution for D.
There are four solutions.

First Solution O(K^2 log K)
Second Solution O(K log^3 K)
Third Solution O(K log K)
Fourth Solution O(K log max)

By the way, you can use this blog as discussion of ABC 123 (because we didn't write announcement because of clashing to codeforces round).