摘要: 伸展树-Splay 对于本题的区间flip操作,线段树难以实现;用splay来做非常合适。 #include <bits/stdc++.h> using namespace std; const int N = 1e5+50; int n,m; struct Node{ int s[2],p,v; 阅读全文
posted @ 2021-01-31 16:20 popozyl 阅读(71) 评论(0) 推荐(0) 编辑