摘要:
OSU! 期望dp SCUACM2022集训前训练-动态规划 - Virtual Judge (vjudge.net) 若连续 x 次成功的贡献是 x,则第 \(i\) 次对答案的贡献为 \(1*p\) 但连续 x 次成功的贡献是 \(x^3\), 而期望只有线性性质,对于 \(x^3\) 不可累加 阅读全文
posted @ 2022-05-28 20:42
hzy0227
阅读(57)
评论(0)
推荐(1)
摘要:
Tele Broadcast 树上背包 SCUACM2022集训前训练-动态规划 - Virtual Judge (vjudge.net) 注意处理叶子结点 #include <iostream> #include <cstring> #include <algorithm> #include <v 阅读全文
posted @ 2022-05-28 20:35
hzy0227
阅读(33)
评论(0)
推荐(0)
摘要:
Centroids 换根dp SCUACM2022集训前训练-动态规划 - Virtual Judge (vjudge.net) 重心只有 1 个 或 2 个 待补 #include <iostream> #include <cstring> #include <algorithm> #includ 阅读全文
posted @ 2022-05-28 20:33
hzy0227
阅读(53)
评论(0)
推荐(0)
摘要:
游走 高斯消元 + 期望dp HNOI2013]游走 - 洛谷 | 计算机科学教育新生态 (luogu.com.cn) 设从第 \(i\) 个点出来的期望次数为 \(f[i]\) \(f[u]=\sum \frac {f[v]}{deg[v]}\;\;1<u<n\) \(f[1]=\sum \fra 阅读全文
posted @ 2022-05-28 20:31
hzy0227
阅读(62)
评论(0)
推荐(0)

浙公网安备 33010602011771号