{"width":"100%","categories":["\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"image_url":null,"provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2018%2F08%2F26%2F114853\" title=\"Ribbons on Tree [AtCoder Regular Contest 101 E] - \u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"Ribbons on Tree [AtCoder Regular Contest 101 E]","version":"1.0","description":"https://beta.atcoder.jp/contests/arc101/tasks/arc101_c \u524d\u63d0\u77e5\u8b58 \u500b\u6570\u7cfb\u5305\u9664\u539f\u7406\uff08\u5076\u5947\u3067\u66f4\u306b\u5727\u7e2e\u3059\u308b\u30c6\u30af\uff09 \u4e8c\u4e57\u306e\u6728DP \u89e3\u6cd5 https://beta.atcoder.jp/contests/arc101/submissions/3082593\u6c42\u3081\u3089\u308c\u308b\u624b\u6cd5\u304c\u591a\u3044\u306e\u3067\u3001\u305d\u3061\u3089\u3092\u5b66\u7fd2\u3057\u3066\u304b\u3089\u306e\u65b9\u304c\u30aa\u30b9\u30b9\u30e1\u3002 \u5f90\u3005\u306b\u8a08\u7b97\u91cf\u3092\u6e1b\u3089\u3057\u3066\u3044\u304f\u306e\u3060\u304c\u3001\u5305\u9664\u539f\u7406\u3092\u524d\u63d0\u306b\u8003\u3048\u306a\u3044\u3068\u7d42\u308f\u308b\u3002 \u5305\u9664\u539f\u7406\u3067\u304d\u308b\u3088\u3046\u306b\u6728DP\u3092\u8003\u3048\u308b\u3002 dp[cu][ngedge][cnt] := \u9802\u70b9cu\u306e\u90e8\u5206\u6728\u3067\u8986\u308f\u308c\u3066\u3044\u306a\u3044\u8fba\u304cngedge\u4ee5\u4e0a\u3067\u3042\u308a\u3001\u8986\u308f\u308c\u3066\u306a\u3044\u304b\u3082\u3057\u308c\u306a\u2026","type":"rich","blog_url":"https://blog.hamayanhamayan.com/","author_name":"hamayanhamayan","blog_title":"\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093","height":"190","author_url":"https://blog.hatena.ne.jp/hamayanhamayan/","provider_name":"Hatena Blog","published":"2018-08-26 11:48:53","url":"https://blog.hamayanhamayan.com/entry/2018/08/26/114853"}