Data Structure problem (SPOJ PATULJCI — Snow White and the N dwarfs)

Правка en1, от Tobby_And_Friends, 2017-01-12 04:28:59

Problem link: http://www.spoj.com/problems/PATULJCI/

Solution link: http://ideone.com/NqSI3j

Verdict: TLE

I tried to use Mo's algorithm and segment tree to solve the problem. How do I further optimize my solution? Any help is really appreciated.

Теги spoj, segment tree, mos_algorithm

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Tobby_And_Friends 2017-01-12 04:28:59 325 Initial revision (published)