随笔分类 - 7.0 字符串
摘要:题面 https://www.luogu.org/problem/P4248 题解 这里,提供后缀数组的做法。
阅读全文
摘要:题面 https://www.luogu.org/problem/P3796 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P3808 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P1117 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P3809 题解 好像写的时候还不理解,但是现在理解了。 排序是间接排序:对于每个点对它的位置$+1$,表示这个位置具有的点的个数,再求前缀和,最后一个一个减回去,得到排名。 对于双关键字的情况,排两次序,先第二再第一。
阅读全文
摘要:题面 https://www.luogu.org/problem/SP8222 题解 建出后缀树之后随便搞一搞,反向更新就好。
阅读全文
摘要:题面 https://www.luogu.org/problem/P4363 题解 很套路的$hash$状态$+dp$。 可知棋子形成的形状一定是一个连续的倒楼梯形(楼梯向右延伸的长度可以不连续,但一定单调) $hash$轮廓就行了。
阅读全文
摘要:追不到北京的神仙小姐姐(话说北京的神仙小姐姐长的好像我女神啊,不知道她去P了还是去T了呢),我只能颓废做北京省选了。。。。。。 咳咳,上面那句话不能让我女神看到。 题面 https://www.luogu.org/problem/P5460 题解 $[l,r]$变换了多少次等价于$[1,r]$-$[
阅读全文
摘要:题面 https://www.luogu.org/problem/P4503 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P3167 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P4036 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P2470 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P2601 题解 二维哈希(和二维前缀和类似) 右向量:$107$下向量:$233$ 才不会取名叫$wls$和$wym$ upd:突然想到,取$wls$和$wym$也挺好的,因为他们作为两个基向量,被我期待在任何一点永不相交。 讽刺的
阅读全文
摘要:题面 https://loj.ac/problem/6066 题解
阅读全文
摘要:题面 https://loj.ac/problem/2072 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P4324 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P3501 题解
阅读全文
摘要:题面 http://darkbzoj.tk/problem/3160 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P1659 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/SP7586 题解
阅读全文

浙公网安备 33010602011771号