Educational Codeforces Round 23:E. Choosing The Commander(字典树01异或)Educational Codeforces Round 23:E. Choosing The Commander(字典树01异或)
Educational Codeforces Round 23:E. Choosing The Commander(字典树01异或)题意:3种操作:1 插入一个数2 删除一个数3 给出一个数pi和l,询问有多少个数pj满足pi^pj<l思路:建字典树,询问的时候当碰到 l 的某一位为1的某一位为1的时候,就更新结果,然后继续搜索注意siz初始化为1#include<bits/stdc++.h>using namespace std;typedef lon