<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hamayanhamayan</author_name>
  <author_url>https://blog.hatena.ne.jp/hamayanhamayan/</author_url>
  <blog_title>はまやんはまやんはまやん</blog_title>
  <blog_url>https://blog.hamayanhamayan.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
  </categories>
  <description>https://atcoder.jp/contests/abc133/tasks/abc133_f 前提知識 LCA クエリ先読み 解説 https://atcoder.jp/contests/abc133/submissions/6312857重要なこととして、制約を簡単にした問題が解けないか考えてみる。 今回で言うと、辺の長さの変更が難しいので、これを抜いてみる。 すると、木の2頂点の距離となる。 これはLCAを使えば解ける。 これを発展させて解いていこう。 LCAを使った典型テクとして、「dist(根,a) + dist(根,b) - 2*dist(根,lca(a,b))」があり、今回も…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2019%2F07%2F08%2F213009&quot; title=&quot;Colorful Tree [AtCoder Beginner Contest 133 F] - はまやんはまやんはまやん&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>2019-07-08 21:30:09</published>
  <title>Colorful Tree [AtCoder Beginner Contest 133 F]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2019/07/08/213009</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
