Codeforces 703D Mishka and Interesting sum 离线+树状数组
2016-08-05 21:07
357 查看
链接
题意
求区间内数字出现次数为偶数的数的异或和
思路
区间内直接异或的话得到的是出现次数为奇数的异或和,要得到偶数的需要把区间内出现过的数字不重复的再异或一遍。离线按右端点排序,每次处理一个区间时,如果该数字出现过,则在树状数组中把这个数删去,再重新再该位置加到树状数组中。
代码
相关文章推荐
- Codeforces 703D Mishka and Interesting sum(树状数组+扫描线)
- CodeForces 703D Mishka and Interesting sum
- Codeforces 703D Mishka and Interesting sum (树状数组求区间内不同的数的异或和)
- Codeforces 703D Mishka and Interesting sum 树状数组
- CodeForces 703D Mishka and Interesting sum(线段树+异或)
- CodeForces 703D Mishka and Interesting sum (树状数组处理异或和)
- codeforces 703D Mishka and Interesting sum(数状数组维护前缀)
- codeforces 703D D. Mishka and Interesting sum(树状数组)
- CodeForces 703D Mishka and Interesting sum (树状数组 区间偶数异或)
- CodeForces 703D Mishka and Interesting sum(树状数组 区间异或)
- CodeForces 703D Mishka and Interesting sum
- Codeforces-703D Mishka and Interesting sum
- 【codeforces 703 D】【离线询问 树状数组 前驱思想 前缀异或和】D. Mishka and Interesting sum【 区间内出现次数偶数的数的异或和】
- CodeForces 703D Mishka and Interesting sum
- 【29.82%】【codeforces 703D】Mishka and Interesting sum
- Mishka and Interesting sum CodeForces - 703D(离线处理)
- CodeForces 703D Mishka and Interesting sum
- codeforces 703D Mishka and Interesting sum (树状数组区间异或)
- CF 703D Mishka and Interesting sum
- 【Codeforces Round 365 (Div 2)D】【离线询问 树状数组 前驱思想】Mishka and Interesting sum 区间内出现次数偶数的数的异或和