摘要: 思路:将ai排序,从小的开始枚举,两边拓展区间,被拓展的标记下#include #include #include using namespace std;#define maxn 300005int a[maxn];int st[maxn];bool vis[maxn];struct node{ int idx,val;}ask[maxn];bool cmp(const node &a,const node &b){ if(a.val==b.val) return a.idx=1) { vis[l]=true;... 阅读全文
posted @ 2013-11-14 21:29 Think_RC 阅读(111) 评论(0) 推荐(0)