{"author_url":"https://blog.hatena.ne.jp/noko_htn/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnoko-htn.hatenadiary.com%2Fentry%2F2019%2F10%2F14%2F012150\" title=\"KUPC2019-B_\u30ca\u30c3\u30d7\u30b5\u30c3\u30af\u554f\u984c\u3092python\u3067\u89e3\u3044\u305f\uff08\u52d5\u7684\u8a08\u753b\u6cd5\uff09 - noko\u306e\u30d6\u30ed\u30b0\" 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%","title":"KUPC2019-B_\u30ca\u30c3\u30d7\u30b5\u30c3\u30af\u554f\u984c\u3092python\u3067\u89e3\u3044\u305f\uff08\u52d5\u7684\u8a08\u753b\u6cd5\uff09","url":"https://noko-htn.hatenadiary.com/entry/2019/10/14/012150","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/n/noko_htn/20191014/20191014012038.png","blog_title":"noko\u306e\u30d6\u30ed\u30b0","version":"1.0","type":"rich","published":"2019-10-14 01:21:50","provider_name":"Hatena Blog","description":"\u306f\u3058\u3081\u306b \u53cb\u4eba\u306b\u52e7\u3081\u3089\u308c\u3066\u305f\u307e\u305f\u307eKyoto University Programming Contest 2019\u306eB\u554f\u984c\u3092\u89e3\u3044\u305f\u306e\u3067\u3001\u5099\u5fd8\u307e\u3067\u306b\u30d6\u30ed\u30b0\u306b\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002 \u554f\u984c\u3068\u89e3\u6cd5 \u554f\u984c \u30ca\u30c3\u30d7\u30b5\u30c3\u30af\u554f\u984c \u53c2\u8003 Python\u3067\u306eUnion-Find\uff08\u7d20\u96c6\u5408\u30c7\u30fc\u30bf\u69cb\u9020\uff09\u306e\u5b9f\u88c5\u3068\u4f7f\u3044\u65b9 \u52d5\u7684\u8a08\u753b\u6cd5(\u30ca\u30c3\u30d7\u30b5\u30c3\u30af\u554f\u984c\u306b\u3064\u3044\u3066) \u30dd\u30a4\u30f3\u30c8 UnionFind\u3092\u4f7f\u3063\u3066v\u3068w\u3092\u518d\u5b9a\u7fa9\u3057\u3066\u304b\u3089\u3001\u30ce\u30fc\u30de\u30eb\u306a\u30ca\u30c3\u30d7\u30b5\u30c3\u30af\u554f\u984c\u3068\u3057\u3066\u89e3\u304f\u3002\uff08\u4e00\u7dd2\u306b\u9078\u3070\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u54c1\u7269\u306f\u307e\u3068\u3081\u3066\u304a\u304f\u3002\uff09 \u30ce\u30fc\u30de\u30eb\u306a\u30ca\u30c3\u30d7\u30b5\u30c3\u30af\u554f\u984c D - Knapsack 1 n,W = list(map(int,input().split\u2026","provider_url":"https://hatena.blog","author_name":"noko_htn","height":"190","categories":["\u7af6\u30d7\u30ed"],"blog_url":"https://noko-htn.hatenadiary.com/"}