摘要:
"Luogu U72177 火星人plus" 解析 + 康托展开和逆康托展开的模板题 + 时间限制有点难受,线段树由于常数大过不了 Code 线段树(80分) cpp include include include include include define LL long long using 阅读全文
摘要:
"Luogu P4392 [BOI2007]Sound 静音问题" 解析 + 挺简单的一道线段树题目,区间长度已经给定,只需用线段树处理区间最大、最小值,然后枚举区间左端点,判断这段区间是否合法即可 Code cpp include include include include include d 阅读全文
摘要:
"Luogu P5057 [CQOI2006]简单题" 解析 + 简单的用树状数组或线段树处理,每次被修改的区间里的元素 +1 即可,最后判断这个点被修改奇数次还是偶数次即可 Code 法一(树状数组) cpp include include include include include defi 阅读全文