Loading...
题源链接 https://codeforces.com/problemset/problem/817/E题目大意有Q次操作,每次操作有三种类型,分别是1 pi 把 pi 加入集合 S2 pi 把 pi 从集合 S 中删除3 pi li 表示查询集合中有多少个元素异或上 pi 后 小于 li思路加入,删除,异或对集合内每一个数求异或然后统计个数,应该是 0/1 Trie 模板题了。这里简单讨论...
题源:https://www.luogu.org/problem/P3372非递归线段树 不能处理混合优先级code#include <bits/stdc++.h> #define numm ch - 48 #define pd putchar(' ') #define pn putchar('\n') #define pb push_back #define fi first...
题源:https://www.luogu.org/problem/P3373code#include <bits/stdc++.h> #define numm ch - 48 #define pd putchar(' ') #define pn putchar('\n') #define pb push_back #define fi first #define se seco...