摘要: 51nod1079 阅读全文
posted @ 2016-05-28 15:44 PosProteus 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 1 int lowbit(int x) 2 { 3 return x & (-x); 4 } 5 6 int sum(int x) 7 { 8 int ret = 0; 9 while(x > 0) 10 { 11 ret += tmp[x]; x -= lowbit(x); 12 } 13 return ret... 阅读全文
posted @ 2016-05-28 14:38 PosProteus 阅读(134) 评论(0) 推荐(0) 编辑