<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>geam1113</author_name>
  <author_url>https://blog.hatena.ne.jp/geam1113/</author_url>
  <blog_title>geam1113’s diary</blog_title>
  <blog_url>https://geam1113.hatenablog.com/</blog_url>
  <categories>
    <anon>ABC</anon>
    <anon>木</anon>
    <anon>全方位木DP</anon>
    <anon>Link-Cut Tree</anon>
  </categories>
  <description>最遠点を求めた後にLink-Cut Treeで回移動する解法で解いてみました。 ここでは、Link-Cut Treeの詳細な説明は割愛し、必要な部分だけを記載します。 詳細は以下のサイトを見るのが良いと思います。 Link-Cut Treeの実装メモ - 日々ｄｒｄｒする人のメモ Link-Cut 木 - ei1333の日記 Link-Cut木では、以下のような操作ができます。 :頂点を根にする :根から頂点までのパスをHeavy-edgeで繋ぐ(パス上の頂点から出るその他の辺は全てLight-edgeになる) 頂点を根とし、頂点までのパスをHeavy-edgeで繋ぐと、間に含まれる全ての頂点…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgeam1113.hatenablog.com%2Fentry%2F2022%2F09%2F21%2F221956&quot; title=&quot;AtCoder Beginner  Contest 267 F - Exactly K Steps - geam1113’s diary&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>2022-09-21 22:19:56</published>
  <title>AtCoder Beginner  Contest 267 F - Exactly K Steps</title>
  <type>rich</type>
  <url>https://geam1113.hatenablog.com/entry/2022/09/21/221956</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
