2017年8月2日

HDU 1556 树状数组

摘要: 1 #include 2 #define maxn 100010 3 using namespace std; 4 int C[maxn],n,m; 5 inline int lowbit(int x){ return (x&-x);} 6 inline void update(int x,int d){ 7 while(x0){ 15 res+=C[x];... 阅读全文

posted @ 2017-08-02 20:34 poler 阅读(134) 评论(0) 推荐(0)

HDU 5480 树状数组

摘要: 1 #include 2 #define maxn 100100 3 using namespace std; 4 int row[maxn],col[maxn],K,n,m,Q,x1,x2,yy1,y2; 5 bool vis[maxn][3]; 6 inline int lowbit(int x){ return (x&-x);} 7 inline void update(in... 阅读全文

posted @ 2017-08-02 20:25 poler 阅读(136) 评论(0) 推荐(0)

FZU 2278 概率

摘要: 题目分析:http://acm.fzu.edu.cn/problem.php?pid=2278 阅读全文

posted @ 2017-08-02 19:27 poler 阅读(255) 评论(0) 推荐(0)

FZU 2277 树状数组

摘要: 题目链接:http://acm.fzu.edu.cn/problem.php?pid=2277 Problem Description There is a rooted tree with n nodes, number from 1-n. Root’s number is 1.Each node 阅读全文

posted @ 2017-08-02 19:22 poler 阅读(280) 评论(0) 推荐(0)

导航