11 2013 档案
摘要:思路:将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;...
阅读全文

浙公网安备 33010602011771号