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.
Data Structure problem (SPOJ PATULJCI — Snow White and the N dwarfs)
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.
| Rev. | Язык | Кто | Когда | Δ | Комментарий | |
|---|---|---|---|---|---|---|
| en1 |
|
Tobby_And_Friends | 2017-01-12 04:28:59 | 325 | Initial revision (published) |