数据结构
双之城
额外去惹人王企鹅
展开
-
hdu-See you~(二维树状数组)
#include #include #include #include #include using namespace std; int map[1005][1005],map1[1005][1005];; int lowbit(int x) { return x&(-x); } void add(int x,int y,int num) { for(i原创 2014-04-06 19:15:24 · 539 阅读 · 0 评论 -
hdu-Find the nondecreasing subsequences(树状数组)
详细解释点击:here~~ 离散化 ++++ dp思想 #include #include #include using namespace std; const int mod = 1000000007; int a[100010]; int n; struct node { int x,y; }s[100010]; bool cmp(node p,node q) {原创 2014-04-06 21:24:36 · 719 阅读 · 0 评论