摘要: int c[2*K]; void add(int x,int v) { when(x0) { ret+=c[x]; x-=x&(-x); } return ret; } 阅读全文
posted @ 2016-05-11 22:05 weeping 阅读(132) 评论(2) 推荐(0) 编辑
摘要: 记得有个小地方打错变量名了,要用的话自己改下就好 阅读全文
posted @ 2016-05-11 22:00 weeping 阅读(159) 评论(0) 推荐(0) 编辑