摘要:
题目描述Volodya is an odd boy and his taste is strange as well. It seems to him that a positive integer number is beautiful if and only if it is ... 阅读全文
摘要:
题目描述The reflected binary code, also known as Gray code after Frank Gray, is a binary numeral system where two successive values differ in onl... 阅读全文
摘要:
题目描述一棵树上有n个节点,编号分别为1到n,每个节点都有一个权值w。我们将以下面的形式来要求你对这棵树完成一些操作: I. CHANGE u t : 把结点u的权值改为t II. QMAX u v: 询问从点u到点v的路径上的节点的最大权值 III. QSUM u v: 询问从点... 阅读全文