theGreyHound's blog

By theGreyHound, history, 22 months ago, In English

https://cses.fi/problemset/task/2134 => Path Queries 2. Used Heavy light decomposition. But I am getting tle verdict. Here is my code:https://pastebin.ubuntu.com/p/rFwVQfCd7v/ Is there some error in the code or there is some optimization needed?

Full text and comments »

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