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

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

A: Short Query

Idea:Yugandhar_Master

solution
code(C++)

B: Minimum MEX

Idea:Yugandhar_Master

solution
code(C++)

C: Range Contradiction

Idea:Yugandhar_Master

solution
code(C++)

D: Eleven

Idea:Yugandhar_Master

solution
code(C++)

E: Not a Segment Tree

Idea:Yugandhar_Master

solution
code(C++)

F2: Award from Wuhudsm(Hard Version)

Idea:Yugandhar_Master

solution
code(C++)
  • Проголосовать: нравится
  • +12
  • Проголосовать: не нравится

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

[Deleted]

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

For D, we can just handle the process until every 0 is flipped. The other part could be handled by flip each character in S then the process is same. For F1, I just did some optimization on my O(N^3) dp and it runs so fast. Just slightly less than 3s.

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

In F, could somebody explain how to use segment tree to maintain the maximum value of $$$dp2_{k,j - i+k}+d_{k,i}$$$?