Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

Problem on Mo's Algorithm on Trees?

Revision en1, by -synx-, 2017-11-04 06:49:24

So the problem goes like, we have colors designated to vertices of tree and we need to find distinct values in subtree of a vertex (queries).
Can anyone share/remember such a problem?
Thanks.

Tags mo algorithm, #trees

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English -synx- 2017-11-04 06:49:24 233 Initial revision (published)