Luogu1613 跑路-倍增+Floyd
摘要:Solution 挺有趣的一道题, 仔细想想才想出来 先用$mp[i][j][dis]$ 是否存在一条 $i$ 到 $j$ 的长度为 $2^{dis}$ 的路径。 转移 : 若$mp[i][j][dis] = 1$, 则把 $f[i][j]$ 记为$1$ 然后再用$f[i][j]$ 去跑$Floyd
阅读全文
posted @ 2018-10-18 12:29
posted @ 2018-10-18 12:29
posted @ 2018-10-16 14:24
posted @ 2018-09-02 16:17
posted @ 2018-08-20 10:41
posted @ 2018-08-16 19:40