随笔分类 - 数据结构#分块
摘要:link 思路: 考虑分块,每个块都用deque维护包含的元素,方便删除和添加。 #代码: // Problem: CF455D Serega and Fun // Contest: Luogu // URL: https://www.luogu.com.cn/problem/CF455D // M
阅读全文
摘要:link #思路: #代码: #include<bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef pair<ll, ll>PLL; typedef pai
阅读全文