SADMAN's blog

By SADMAN, history, 13 months ago, In English

I was trying this problem 840D - Destiny using Mo's algorithm but I got stuck on TLE on test 5 342080782 for using map . Is there any alternative way to solve this problem using Mo's Algorithm?

  • Vote: I like it
  • +2
  • Vote: I do not like it

| Write comment?
»
13 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I think that Mo should give TLE because there is a clean O(KNlogN) approach you can also check 2149G - Buratsuta 3 from a recent contest