<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tsutaj</author_name>
  <author_url>https://blog.hatena.ne.jp/tsutaj/</author_url>
  <blog_title>hogecoder</blog_title>
  <blog_url>https://tsutaj.hatenablog.com/</blog_url>
  <categories>
    <anon>その他コンテスト</anon>
    <anon>グラフ</anon>
    <anon>動的計画法</anon>
  </categories>
  <description>問題概要 問題原文 → Problem C2: Gold Mine - Chapter 2 | Facebook Hacker Cup - 2021 - Qualification Round 頂点の木があり、それぞれの頂点 には重み がついている。木から高々 個の辺素パスを取るとき、パスに含まれる重みの和の最大値を求めよ (ただしそれぞれの頂点の重みは一度のみ加算するものとする)。 ※元の問題は C1, C2 に分かれていますが、C1 では で固定です。この記事では C2 について解説しています。 解法 頂点 を根として、根付き木として考察します。動的計画法 (DP) で解くことができます。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftsutaj.hatenablog.com%2Fentry%2F2021%2F08%2F31%2F155631&quot; title=&quot;FaceBook Hacker Cup 2021 Qualification Round C: Gold Mine - hogecoder&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-08-31 15:56:31</published>
  <title>FaceBook Hacker Cup 2021 Qualification Round C: Gold Mine</title>
  <type>rich</type>
  <url>https://tsutaj.hatenablog.com/entry/2021/08/31/155631</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
