2013年2月17日

LA 4329 pingpong 树状数组

摘要: LA 4329 pingpongP197树状数组统计,统计数组中,一个值的左边比它小的个数用乘法原理求方法总数。注意 N个数互不相同(distinct) 因为,最大值有限。可以利用树状数组统计。 1 #include <iostream> 2 #include <cstdio> 3 #include <cstdlib> 4 #include <cstring> 5 6 #define lowbit(x) ((x)&(-(x))) 7 using namespace std; 8 9 const int max_a=100000+1000; 阅读全文

posted @ 2013-02-17 17:06 mmqh 阅读(625) 评论(0) 推荐(0) 编辑

导航