随笔分类 - 4.0 图论
摘要:题面 https://www.luogu.org/problem/P3980 题解 套路作差,每个点代表一组等式,然后连边。
阅读全文
摘要:题面 https://www.luogu.org/problem/P2304 题解 $orz$ $aysn$ 神仙题不会,还是$aysn$教我的。 二合一。 第一问是个$dp$,我一开始想建$DAG$跑最长路,后来经题解点化可以把同一层的一起考虑,这样就能做到$O(n)$了。 方法: $f[x]$:
阅读全文
摘要:题面 https://www.luogu.org/problem/P3852 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P3196 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P4251 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P1963 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P1971 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P3231 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P1640 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P1129 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P1402 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P2756 题解
阅读全文
摘要:题面 http://darkbzoj.tk/problem/2125 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P4606 题解 又一次被$aysn$吊打。
阅读全文
摘要:题面 https://www.luogu.org/problem/P4630 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P2993 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P5304 题解 可能是“最短路”标签下最难的一道题了吧,还是要补说几句的。 对于任意一对点,他们的最短路有两种情况: 一条边直达 经过别的点中转 第一种情况直接特判掉。 对于第二种情况 跑多源$dijkstra$,正跑一次,再反跑一
阅读全文
摘要:题面 http://darkbzoj.tk/problem/4061 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P4745 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P2494 题解
阅读全文

浙公网安备 33010602011771号