{"provider_url":"https://hatena.blog","blog_title":"\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093","width":"100%","published":"2019-04-14 11:06:09","categories":["\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2019%2F04%2F14%2F110609\" title=\"Serval and Rooted Tree [Codeforces Round #551 (Div. 2) D] - \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>","provider_name":"Hatena Blog","height":"190","author_url":"https://blog.hatena.ne.jp/hamayanhamayan/","url":"https://blog.hamayanhamayan.com/entry/2019/04/14/110609","description":"https://codeforces.com/contest/1153/problem/D\u9802\u70b91\u304c\u6839\u3001N\u9802\u70b9\u306e\u6839\u4ed8\u304d\u6728\u304c\u3042\u308b\u3002 \u5404\u9802\u70b9\u306b\u306fmin, max\u304c\u4ed8\u3044\u3066\u3044\u308b\u3002 \u6728\u306e\u8449\u306e\u6570\u3092K\u3068\u3059\u308b\u3068\u3001\u6728\u306e\u8449\u306b\u306f1\uff5eK\u30921\u3064\u305a\u3064\u5272\u308a\u5f53\u3066\u3089\u308c\u308b\u3002 \u8449\u3067\u306a\u3044\u9802\u70b9\u306e\u6570\u306f\u5b50\u306emin\u304bmax\u306b\u306a\u308b\uff08\u9802\u70b9\u306b\u3064\u3044\u3066\u3044\u308bmin,max\u306b\u5f93\u3046\uff09\u3002 \u8449\u306b\u9069\u5207\u306b1\uff5eK\u3092\u5272\u308a\u5f53\u3066\u3066\u3001\u9802\u70b91\u306e\u6570\u3092\u6700\u5927\u5316\u305b\u3088\u3002N\u22663*10^5 \u524d\u63d0\u77e5\u8b58 \u6728DP \u89e3\u8aac https://codeforces.com/contest/1153/submission/52727503\u6728DP\u3067\u89e3\u304f\uff08\u8caa\u6b32\u6cd5\u306b\u8fd1\u3044\u304b\u3082\u3057\u308c\u306a\u3044\u3051\u3069\uff09\u3002 dp[cu] := \u9802\u2026","image_url":null,"type":"rich","title":"Serval and Rooted Tree [Codeforces Round #551 (Div. 2) D]","version":"1.0","blog_url":"https://blog.hamayanhamayan.com/","author_name":"hamayanhamayan"}