{"height":"190","categories":["\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","AtCoder","ABC"],"published":"2020-01-19 22:41:45","author_url":"https://blog.hatena.ne.jp/hitoare/","author_name":"hitoare","version":"1.0","title":"F - Tree and Constraints (AtCoder Beginner Contest 152)","blog_url":"https://hitoare.hatenablog.com/","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhitoare.hatenablog.com%2Fentry%2F2020%2F01%2F19%2F224145\" title=\"F - Tree and Constraints (AtCoder Beginner Contest 152) - hitoare\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u554f\u984c\u30ea\u30f3\u30af atcoder.jp \u554f\u984c\u6982\u8981 \\(N\\)\u9802\u70b9\u306e\u6728\u304c\u4e0e\u3048\u3089\u308c\u308b\u3002\\(N-1\\)\u672c\u306e\u8fba\u3092\u767d\u307e\u305f\u306f\u9ed2\u306b\u5857\u308a\u5206\u3051\u308b\u65b9\u6cd5\u3067\u3042\u3063\u3066\u3001\u6b21\u306e\\(M\\)\u500b\u306e\u6761\u4ef6\u5168\u3066\u3092\u6e80\u305f\u3059\u3082\u306e\u306f\u3044\u304f\u3064\u3042\u308b\u304b\u3002 \u6761\u4ef6\\(i(1\u2266i\u2266M) \\) : \\(u_i\\)\u3068\\(v_i\\)\u3092\u7d50\u3076\u30d1\u30b9\u306e\u9593\u306b\u3001\u9ed2\u3044\u8fba\u304c\u5c11\u306a\u304f\u3068\u30821\u3064\u5b58\u5728\u3059\u308b \u89e3\u6cd5 \u6761\u4ef6\\(1\u2026M\\)\u30921\u3064\u3067\u3082\u6e80\u305f\u3055\u306a\u3044\u7269\u306e\u500b\u6570\u3092\u6570\u3048\u3001\u6700\u5f8c\u306b\\(2^{N-1}\\)\u304b\u3089\u5f15\u3044\u3066\u7b54\u3048\u3092\u6c42\u3081\u308b\u3002 \u5404\u8fba\u306b\u9069\u5f53\u306b\u756a\u53f7\u3092\u632f\u3063\u3066\u304a\u304f\u3002 \u70b9\\(u_i\\)\u3068\\(v_i\\)\u3092\u7d50\u3076\u30d1\u30b9\u306b\u542b\u307e\u308c\u308b\u8fba\u306e\u96c6\u5408\u3092\\(P_i\\)\u3068\u3059\u308b\u3068\u3001\u6761\u4ef6i\u3092\u6e80\u305f\u3055\u306a\u3044\u3053\u3068\u3068\\(P_i\\)\u306b\u542b\u307e\u308c\u308b\u8fba\u304c\u5168\u3066\u767d\u304f\u5857\u2026","provider_url":"https://hatena.blog","blog_title":"hitoare\u65e5\u8a18","provider_name":"Hatena Blog","type":"rich","url":"https://hitoare.hatenablog.com/entry/2020/01/19/224145","width":"100%"}