<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kanpurin</author_name>
  <author_url>https://blog.hatena.ne.jp/kanpurin/</author_url>
  <blog_title>かんプリンの学習記録</blog_title>
  <blog_url>https://kanpurin.hatenablog.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
    <anon>解説</anon>
    <anon>ABC</anon>
    <anon>動的計画法</anon>
    <anon>グラフ</anon>
  </categories>
  <description>問題はこちら 問題概要 思考の流れ 提出プログラム 感想 問題概要 頂点の木が与えられる. 木の各辺には色が塗られていて長さはである. このとき, 以下の個の問いに答えよ. 色が塗られている辺の長さがに変更されたと仮定したときの二頂点間の距離を求めよ. (辺の長さの変更はこれ以降の問いには影響しない) 思考の流れ これっぽさがある. kanpurin.hatenablog.com 木上の二頂点間の距離は適当な頂点を根としてLCAを求めることで, 各頂点から根までの距離を求めておくことですぐ求めることができる. しかし今回は辺の長さの変更があるので面倒. すべての色と頂点に関して根からまでに通る…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkanpurin.hatenablog.com%2Fentry%2F2020%2F04%2F22%2F184429&quot; title=&quot;ABC133 F - Colorful Tree - かんプリンの学習記録&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>https://chart.apis.google.com/chart?cht=tx&amp;chl=%7B1%5Cle%20N%5Cle%2010%5E%7B5%7D%7D</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-04-22 18:44:29</published>
  <title>ABC133 F - Colorful Tree</title>
  <type>rich</type>
  <url>https://kanpurin.hatenablog.com/entry/2020/04/22/184429</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
