摘要: 用vector维护每种颜色出现位置,二分左右端点,右端点用upperbound,交换直接把vector里的也交换 #include<bits/stdc++.h> #define pb push_back using namespace std; const int maxn=300009; int 阅读全文
posted @ 2019-11-06 21:38 羊肉汤泡煎饼 阅读(150) 评论(0) 推荐(0) 编辑