随笔分类 - 4.1 图论——最短路
摘要:题面 https://www.luogu.org/problem/P1081 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/CF1031D 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P3385 题解 $bfs-spfa$
阅读全文
摘要:题面 https://www.luogu.org/problem/P2149 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P4568 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P1144 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P1462 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P3584 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P2046 题解 首先,显然,一个地方的高度不是$0$,就是$1$。 我们设计一个网络流模型,保留原图中的边,以$(1,1)$为源,$(n,n)$为汇,求最小割(纯口胡,正确性不敢保证) 接着因为数据太大,平面图转对偶图。 平面图最小
阅读全文
摘要:题面 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 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P2149 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P4162 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P2566 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P2537 题解
阅读全文
摘要:题面 https://vijos.org/p/1404 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P2446 题解
阅读全文