Блог пользователя theGreyHound

Автор theGreyHound, история, 14 месяцев назад, По-английски

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?

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

»
14 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Auto comment: topic has been updated by theGreyHound (previous revision, new revision, compare).

»
14 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Auto comment: topic has been updated by theGreyHound (previous revision, new revision, compare).