摘要: #include #include using namespace std; const int maxn=100000+10; const int p=99991; int a[7]; bool check[maxn]; int next[maxn],adj[maxn]; int snow[maxn][10]; int tot; int H(int x[]){ int h1=0,... 阅读全文
posted @ 2018-05-01 11:46 lmjer 阅读(220) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std; const int maxn=1000000; int q[maxn],a[maxn]; int main(){ int n; int m; scanf("%d%d",&n,&m); for (int i=1;i=a[i]) r--;//保证队列的单调性,即保证队... 阅读全文
posted @ 2018-05-01 10:05 lmjer 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 问题试求至少用几个双端队列可排序 那么我们不妨换过来思考,将数列排好序后,再来找队列个数 阅读全文
posted @ 2018-05-01 09:05 lmjer 阅读(300) 评论(0) 推荐(0) 编辑