Heavy Light Trick + Tree Rerooting Technique

Revision en2, by Algorithm_, 2021-01-25 23:21:20
Tags #sqrt decomposition

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English Algorithm_ 2021-03-08 21:47:24 228
en3 English Algorithm_ 2021-02-04 22:18:22 55 Tiny change: 'Olymp-1180' -> 'Olymp-1180\n\n3. https://codeforces.me/problemset/problem/1156/D'
en2 English Algorithm_ 2021-01-25 23:21:20 351
en1 English Algorithm_ 2021-01-23 15:28:13 357 Initial revision (published)