摘要:
「CF1037H」Security 有关字典序可以依次考虑
T 的每一位转化为询问
O(|Σ||T|) 个字符串在区间
[l,r] 的存在性判断。因为可以用线段树合并维护
SAM 上每个等价类的 \(\t
阅读全文
posted @
2024-09-06 22:16
little_pinkpig
阅读(19)
推荐(0) 编辑
摘要:
「CF1710D」Recover the Tree Solution 考虑好区间
I1,I2(I1∩I2≠∅),
I1∩I2 和
I1∪I2 都是好区间。于是我们考虑从长度小开始构建。 初
阅读全文
posted @
2022-10-15 12:41
little_pinkpig
阅读(123)
推荐(1) 编辑
摘要:
Codeforces Round #815 (Div.2) 「CF1720A」 Burenka Plays with Fractions Codeforces 链接
Solution 每次可以对分子分母同时乘上
k,相当于对分数乘
阅读全文
posted @
2022-08-19 22:07
little_pinkpig
阅读(57)
推荐(0) 编辑
点击右上角即可分享