Блог пользователя Zahra.n

Автор Zahra.n, история, 10 лет назад, По-английски

Hello. I need help for solving problem dquery. pls help me. thanks.

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

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

Well, the fastest algorithm i know has O((n + m) * Log(n)) complexity and requires persistent seg-tree. I can share it if u need, just let me know

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

I think this problem can solve ofline and online
Ofline=Mo's algorithm or Segment tree
Online=SqrtDecomposition and Bitset (I didn't write online solution's code but I think it is possible)