Qiuqiqiu  
不管道路多么崎岖坎坷,我永远不停下追逐梦想的脚步!

2012年3月26日

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2642View Code 1 #include <cstdio> 2 #include <cstring> 3 using namespace std; 4 5 const int N=1010,maxn=1001;; 6 char flag[N][N]; 7 int c[N][N]; 8 int lowbit(int x) 9 {10 return x&(-x);11 }12 int sum(int x,int y)13 {14 int cnt=0;15 for(int i= 阅读全文
posted @ 2012-03-26 20:57 Qiuqiqiu 阅读(199) 评论(0) 推荐(0) 编辑
 
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1556View Code 1 #include<cstdio> 2 using namespace std; 3 4 const int N=100100; 5 struct node 6 { 7 int l,r,c; 8 int m() {return (l+r)/2;} 9 }st[N*4];10 int ans[N];11 void build(int l,int r,int rt)12 {13 st[rt].l=l; st[rt].r=r; st[rt].c=0;14 ... 阅读全文
posted @ 2012-03-26 17:26 Qiuqiqiu 阅读(151) 评论(0) 推荐(0) 编辑