摘要: P3368 【模板】树状数组 2 如题,已知一个数列,你需要进行下面两种操作: 1.将某区间每一个数数加上x 2.求出某一个数的值 树状数组区间加,单点查询。 code: include include using namespace std; const int wx=500017; inline 阅读全文
posted @ 2018-10-31 06:25 _王小呆 阅读(133) 评论(0) 推荐(0)
摘要: P3812 【模板】线性基 给定n个整数(数字可能重复),求在这些数中选取任意个,使得他们的异或和最大。 code: include include using namespace std; define int long long inline int read(){ int sum=0,f=1; 阅读全文
posted @ 2018-10-31 06:17 _王小呆 阅读(142) 评论(0) 推荐(0)