摘要:
每个节点 tree[i]=a[i-2^k+1]+....+a[i] k为取最低位的1; 转变为二进制 例如 7: tree 0111 = a 0111 8: tree 1000 = a 0001 + a 0010 + a 0011 +...+ a 1000; 取最低位的1 修改: 7(111) an 阅读全文
摘要:
Alice and Bob are big fans of math. In particular, they are very excited about playing games that are related to numbers. Whenever they see a puzzle l 阅读全文