<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>inamori</author_name>
  <author_url>https://blog.hatena.ne.jp/inamori/</author_url>
  <blog_title>inamori’s diary</blog_title>
  <blog_url>https://inamori.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>https://atcoder.jp/contests/abc439/tasks/abc439_f山と谷の数ということですが、山があれば谷があります。そして、山と谷は交互に来ます。つまり最初と最後が山なら門松的ということになります。最初の点とその次の点と最後の前の点と最後の点を、A, B, C, Dとすると、なら門松的になります。 まず、Aを固定することを考えると、どうにもならなそうですね。これは捨てて、Bを固定することを考えます。そうすると、可能なAの数が分かりそうですね。Bより前を木にして、Bより小さい点の個数を数えます。また、Cを固定して同様にCより小さいDの数を数えます。また、BとCの…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F2026%2F01%2F08%2F222230&quot; title=&quot;AtCoder Beginner Contest 439 F - inamori’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>2026-01-08 22:22:30</published>
  <title>AtCoder Beginner Contest 439 F</title>
  <type>rich</type>
  <url>https://inamori.hateblo.jp/entry/2026/01/08/222230</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
