摘要: 题意: 给出一段序列,每次将从第p个数开始的s个数移到最前面。求最终的序列是什么。 题解: Splay翻转模板题。存下板子。 #include <bits/stdc++.h> using namespace std; const int INF = 1e6; const int N = 1e5+10 阅读全文
posted @ 2018-07-28 09:46 Pneuis 阅读(234) 评论(0) 推荐(0) 编辑