随笔分类 -  思维&构造

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

点击右上角即可分享
微信分享提示
more_horiz
keyboard_arrow_up light_mode palette
选择主题
more_horiz
keyboard_arrow_up light_mode palette
选择主题