{"provider_name":"Hatena Blog","published":"2024-01-07 21:57:19","version":"1.0","height":"190","url":"https://torus711.hatenablog.com/entry/2024/01/07/215719","blog_title":"torus711 \u306e\u30a2\u30ec","title":"AtCoder Beginner Contest 335, E : Non-Decreasing Colorful Path","provider_url":"https://hatena.blog","image_url":null,"author_url":"https://blog.hatena.ne.jp/torus711/","type":"rich","blog_url":"https://torus711.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftorus711.hatenablog.com%2Fentry%2F2024%2F01%2F07%2F215719\" title=\"AtCoder Beginner Contest 335, E : Non-Decreasing Colorful Path - torus711 \u306e\u30a2\u30ec\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","categories":["AtCoder","\u30b0\u30e9\u30d5","\u5f37\u9023\u7d50\u6210\u5206\u5206\u89e3","\u52d5\u7684\u8a08\u753b\u6cd5"],"author_name":"torus711","description":"\u554f\u984c\u6587 https://atcoder.jp/contests/abc335/tasks/abc335_e \u554f\u984c\u6982\u8981 $n$ \u9802\u70b9 $m $ \u8fba\u304b\u3089\u306a\u308b\u9023\u7d50\u306a\u5358\u7d14\u7121\u5411\u30b0\u30e9\u30d5 $G = ( V, E )$ \u304c\u3042\u308a\uff0c$i$ \u756a\u76ee\u306e\u8fba\u306f\u9802\u70b9 $V_i$ \u3068 $U_i$ \u3092\u53cc\u65b9\u5411\u306b\u7d50\u3093\u3067\u3044\u308b\uff0e\u307e\u305f\uff0c\u6574\u6570\u5217 $A = \\langle A_1, A_2, \\dots, A_n \\rangle$ \u304c\u4e0e\u3048\u3089\u308c\u308b\uff0e \u9802\u70b9 $1$ \u304b\u3089\u9802\u70b9 $n$ \u3078\u306e\u5358\u7d14\u30d1\u30b9*1 $P = \\langle P_1 = 1, P_2, \\dots, P_k = n \\rangle$ \u306e\u30b9\u30b3\u30a2\u3092 \u6570\u5217 $S = \\langle A\u2026"}