摘要:
伸展树-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; 阅读全文
摘要:
[AtCoder Beginner Contest 103] A - Task Scheduling Problem #include <bits/stdc++.h> using namespace std; int arr[5]; int main(){ scanf("%d%d%d",&arr[1 阅读全文