<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mayokoex</author_name>
  <author_url>https://blog.hatena.ne.jp/mayokoex/</author_url>
  <blog_title>mayoko’s diary</blog_title>
  <blog_url>https://mayokoex.hatenablog.com/</blog_url>
  <categories>
    <anon>yukicoder</anon>
  </categories>
  <description>問題 No.359 門松行列 - yukicoder 解法 門松列は結局数同士の大小関係で定義されますが, 大小関係が逆転する可能性があるのは, この後並べようとしている竹の高さが既に配置されている竹より大きくなる時か, 小さくなる時だけと考えられます。実はあと x &gt; L-x となるところも境界線です。これらの高さだけが 門松行列になる/ならないの境界線なので, 後は区間で管理しながら一気に数え上げれば大きい L に対しても高速に計算することが出来ます。 bool isKadomatsu(int a0, int a1, int a2) { if (a0 == a1 || a0 == a2 |…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2016%2F04%2F22%2F195230&quot; title=&quot;yukicoder No.359 門松行列 - mayoko’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>2016-04-22 19:52:30</published>
  <title>yukicoder No.359 門松行列</title>
  <type>rich</type>
  <url>https://mayokoex.hatenablog.com/entry/2016/04/22/195230</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
