摘要:
Description 给定一棵N个节点的树,每个点有一个权值,对于M个询问(u,v,k),你需要回答u xor lastans和v这两个节点间第K小的点权。其中lastans是上一个询问的答案,初始为0,即第一个询问的u是明文。 给定一棵N个节点的树,每个点有一个权值,对于M个询问(u,v,k), 阅读全文
摘要:
Description You are working for Macrohard company in data structures department. After failing your previous task about key insertion you were asked t 阅读全文