摘要: A:大水题;代码: 1 #include 2 #define ll long long 3 using namespace std; 4 5 int main() 6 { 7 ll n,m,a; 8 cin>>n>>m>>a; 9 cout 2 #include 3 #define maxn 1000005 4 using namespace std; 5 int n; 6 char s[50]; 7 void a_to_b() 8 { 9 int a,b;10 int p=maxn-1;11 char t[maxn];12 sscan... 阅读全文
posted @ 2013-10-17 20:52 Yours1103 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 昨天学习了线段树的延迟标记;发现自己还有区间合并没有学;抓紧时间学习一下;代码: 1 #include 2 #include 3 #define maxn 200005 4 using namespace std; 5 6 struct tree 7 { 8 int l,r,msum,lsum,rsum,flag; 9 tree *right,*left; 10 }tr[maxn]; 11 int nonocount; 12 13 void build(tree *root,int l,int r) 14 { 15 root->l=l,root->... 阅读全文
posted @ 2013-10-17 11:55 Yours1103 阅读(116) 评论(0) 推荐(0) 编辑