acm
savannah-
这个作者很懒,什么都没留下…
展开
-
树状数组
树状数组 情景:在区间上进行以下两种操作(区间的初始值全部为0) type1 A:把位置x的值+k B:询问区间[l,r]之间所有数字之和 type2 A:把区间[l,r]上的值全都+x B:询问x位置的值 type3 A:把区间[l,r]上的值全都+x B:询问区间[l,r]上所有数字之和 所需了解的二进制按位运算的知识 1.按位与& exp 0011 3 &a...原创 2019-09-26 21:20:51 · 182 阅读 · 0 评论 -
p1197星球大战
*Problem:p1197星球大战 *State:ac *Algorithm:逆序,并查集 /* *Problem:P1197星球大战 *State:ac *Algorithm:逆序,并查集 */ #include <iostream> #include <cstring> #include <vector> #include <cstdio>...原创 2019-09-26 18:22:26 · 238 阅读 · 0 评论