<?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>
  </categories>
  <description>コンテスト中AC:A〜D D - Moves on Binary Tree D - Moves on Binary Tree 公式解説の解法1とほぼ同じでした。 まず、根からへの移動方法の文字列を得ます。具体的には、 が1となるまで以下を行う。 の末尾に、が偶数なら'L'を、奇数なら'R'を追加。 と更新。 上記が終了したら、を反転させる。 その後、について、以下を行います。 が'U'なら、の末尾から文字を一つ取り除く。 そうでないなら、をの末尾に追加。 これによって、は根から答えのノードまでの移動方法の文字列となります。あとはこれに従って、根(番号1)から計算していけば良いです。 計算量は、…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgeam1113.hatenablog.com%2Fentry%2F2022%2F03%2F13%2F064406&quot; title=&quot;ABC243 参加記録 - 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-03-13 06:44:06</published>
  <title>ABC243 参加記録</title>
  <type>rich</type>
  <url>https://geam1113.hatenablog.com/entry/2022/03/13/064406</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
