<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>peroon</author_name>
  <author_url>https://blog.hatena.ne.jp/peroon/</author_url>
  <blog_title>perogram</blog_title>
  <blog_url>https://perogram.hateblo.jp/</blog_url>
  <categories>
    <anon>ライブラリ</anon>
  </categories>
  <description>yosupo judgeでAC https://judge.yosupo.jp/submission/25877 直径のパスも求められる // 木の直径（コストあり） struct TreeDiameter{ vector&lt;vector&lt;PII&gt;&gt; G; // (to, cost) ll N; ll start,end; VI path; ll d; VI TO; // 初期化のみ TreeDiameter(ll n){ N=n; G.resize(N); TO.resize(N, -1); } // 辺登録 (両方向!!) void add_edge(ll a, ll b, ll cost)…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fperogram.hateblo.jp%2Fentry%2F2020%2F10%2F06%2F214336&quot; title=&quot;（コスト付き）木の直径(by dfs) 復元付き - perogram&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>2020-10-06 21:43:36</published>
  <title>（コスト付き）木の直径(by dfs) 復元付き</title>
  <type>rich</type>
  <url>https://perogram.hateblo.jp/entry/2020/10/06/214336</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
