
Tarjan
ixRic
ixRic
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
[SDOI2012]走迷宫(Tarjan + 概率DP + 高斯消元)
文章目录题面分析代码题面洛谷P6030 [SDOI2012]走迷宫分析设dp[u]dp[u]dp[u]表示从uuu走到TTT的期望步数,VuV_uVu表示uuu能到的点的集合,那么有dp[u]=∑v∈Vu1∣Vu∣⋅(dp[v]+1)=1∣Vu∣∑v∈vudp[v]+1\begin{aligned}dp[u]&=\sum\limits_{v\in V_u}\dfrac{1}{|...原创 2020-02-09 12:58:31 · 309 阅读 · 0 评论 -
[CodeForces 700D]Break Up(双连通分量+枚举)
文章目录题目题目大意分析代码题目DescriptionAgain, there are hard times in Berland! Many towns have such tensions that even civil war is possible.There are nnn towns in Reberland, some pairs of which connected by ...原创 2019-10-28 18:29:48 · 416 阅读 · 0 评论