{"version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fenakai00.hatenablog.com%2Fentry%2F2021%2F07%2F16%2F215232\" title=\"G - Longest Path \u306e\u89e3\u8aac\uff08\u305d\u306e2\uff09 - \u3081\u3082\u3081\u3082\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://enakai00.hatenablog.com/","author_name":"enakai00","author_url":"https://blog.hatena.ne.jp/enakai00/","blog_title":"\u3081\u3082\u3081\u3082","description":"\u4f55\u306e\u8a71\u304b\u3068\u8a00\u3046\u3068 enakai00.hatenablog.com\u524d\u56de\u306e\u7d9a\u304d\u3067\u3059\u3002 \u30ce\u30fc\u30c9\u3092\u6d88\u3057\u3066\u3044\u304f\u767a\u60f3\uff08\u3082\u3057\u304f\u306f\u3001\u30c8\u30dd\u30ed\u30b8\u30ab\u30eb\u30aa\u30fc\u30c0\u30fc\u306b\u3088\u308b\u51e6\u7406\uff09 \u524d\u56de\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306e\u8a08\u7b97\u91cf\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u3087\u3046\u3002 for x in range(1, N+1): for y in range(1, N+1): if dp[y][x] == 0: continue for z in range(1, N+1): if dp[x][z] == 0: continue \u3053\u306e3\u91cd\u30eb\u30fc\u30d7\u304b\u3089\u308f\u304b\u308b\u69d8\u306b\u6700\u60aa\u30b1\u30fc\u30b9\u3067 \u3067\u3059\u3002\u5927\u90e8\u5206\u306e dp[x][y]\u3001dp[y][z] \u304c 0 \u3067\u3042\u308c\u3070\u3001\u30ea\u30f3\u30af\u60c5\u5831\u3092\u5225\u306e\u30c7\u30fc\u30bf\u69cb\u9020\u306b\u6301\u305f\u305b\u305f\u3001\u2026","url":"https://enakai00.hatenablog.com/entry/2021/07/16/215232","title":"G - Longest Path \u306e\u89e3\u8aac\uff08\u305d\u306e2\uff09","provider_url":"https://hatena.blog","height":"190","type":"rich","categories":[],"published":"2021-07-16 21:52:32","image_url":null,"provider_name":"Hatena Blog","width":"100%"}