06 2022 档案
CF1688A Cirnos Perfect Bitmasks Classroom
摘要:题意 给出一个正整数 xxx,求出一个最小的正整数 yyy,使得 x and y>0x\text{ and }y>0x and y>0 且 x xor y>0x\text{ xor }y>0x xor y>0。 分析 根据按位与和按位异或的性质,题目的两个条件可以理解为 x,yx,yx,y 在二进制
李超线段树
摘要:宏定义 #define pl p<<1\texttt{\#define pl p<<1}#define pl p<<1:节点 ppp 的左儿子。 #define pr p<<1|1\texttt{\#define pr p<<1|1}#define pr p<<1|1:节点 ppp 的右儿子。 常量