2016年9月28日

摘要: 不能用分块。 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int Maxn=1000100; 4 struct Info{int l,r,Id;}Q[Maxn]; 5 int a[Maxn],n,c,m,Last[Maxn],N 阅读全文

posted @ 2016-09-28 19:36 yyjxx2010xyu 阅读(132) 评论(0) 推荐(0) 编辑

摘要: 标记会重叠需要判断. 1 #include <bits/stdc++.h> 2 using namespace std; 3 inline int Max(int x,int y) {return x>y?x:y;} 4 inline int Max3(int x,int y,int z) {ret 阅读全文

posted @ 2016-09-28 19:09 yyjxx2010xyu 阅读(160) 评论(0) 推荐(0) 编辑