摘要:
浅谈分块: "https://www.cnblogs.com/AKMer/p/10369816.html" 题目传送门: "https://lydsy.com/JudgeOnline/problem.php?id=2724" 对于每次询问的答案,要么是中间整块的众数,要么是在两侧不完整的块出现过的数 阅读全文
摘要:
浅谈分块: "https://www.cnblogs.com/AKMer/p/10369816.html" 题目传送门: "https://lydsy.com/JudgeOnline/problem.php?id=2120" 树套树做法: "https://www.cnblogs.com/AKMer 阅读全文
摘要:
浅谈分块: "https://www.cnblogs.com/AKMer/p/10369816.html" 题目传送门: "https://lydsy.com/JudgeOnline/problem.php?id=2141" 第一次的答案可以直接用树状数组求。 如果交换$pos_1$和$pos_2$ 阅读全文
摘要:
浅谈分块: "https://www.cnblogs.com/AKMer/p/10369816.html" 题目传送门: "https://lydsy.com/JudgeOnline/problem.php?id=2002" 显然如果没有修改的话,那么这就是一道倒着扫一遍就完事的傻逼题。记录每个点要 阅读全文