这一看不是平衡树随便搞吗?
等等,n≤7×105!
不管。
勇敢一点。
直接上个平衡树维护序列,销牌就是把序列的一段前缀移到序列末尾。
还好 BZOJ 不卡常。
代码:
1 |
|
这一看不是平衡树随便搞吗?
等等,n≤7×105!
不管。
勇敢一点。
直接上个平衡树维护序列,销牌就是把序列的一段前缀移到序列末尾。
还好 BZOJ 不卡常。
代码:
1 | #include <cstdio> |
Related Issues not found
Please contact @Alpha1022 to initialize the comment