随笔分类 - 5.0 数据结构
摘要:题面 https://www.luogu.org/problem/P3233 题解 我构思和实现这道题写了很长世界,事实上,一开始就想好的话,不需要花费如此长的时间的。 只对关键点和关键点的$lca$建一个虚树。 定义虚树上的每个点的控制范围是只走不经过虚树路径上的点,能够到达的点集,这个可以建出虚
阅读全文
摘要:题面 https://www.luogu.org/problem/P2221 题解 其实我认为这道题还挺难的。。。。虽然是道水题罢了。 这道题让我自闭了两次,可见我现在学习状态之差,整个题从思考到写出来竟然花了下午的一个小时和一个晚上的时间。 马上的$NOIP$,如果还是以这种状态,肯定是考不好的。
阅读全文
摘要:题面: 给定$n$个店铺的种类$t_i$、地点$x_i$和时间区间$[a_i..b_i]$。 询问某时某地的“便利度”,“便利度”定义为所有种类的距离最大值,种类的距离是该时间下,所有此类商店到该地点的距离最小值。 题解: 说实话,这个二分答案其实挺不好想的。(一开始看了题解,再回过头来看,才意识到
阅读全文
摘要:这道题是一个月之前就应该会的了,但是一直没有弄懂,今天回放了一遍,把它弄懂了。 题意简述: 一个操作是把位于$[l..r]$的所有元素$x$变换成$(ax+b)\%m$。 强制在线,每次定义一个新的操作,或是询问只作用变换$l..r$则位于$k$位置的元素应该变成多少。 题解: 这道题很神仙,应用的
阅读全文
摘要:题面 https://www.luogu.org/problem/P4546 题解 泰勒展开一般函数转多项式,$LCT$维护多项式。
阅读全文
摘要:题面 https://www.luogu.org/problem/P1637 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P3384 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P3369 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P3919 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P3834 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P3157 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P3810 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P3391 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P3690 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/CF161D 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P3806 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P3835 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P5055 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P4631 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P4198 题解
阅读全文

浙公网安备 33010602011771号