<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>masuTomo</author_name>
  <author_url>https://blog.hatena.ne.jp/masuTomo/</author_url>
  <blog_title>masuTomo’s blog</blog_title>
  <blog_url>https://masutomo.hatenablog.com/</blog_url>
  <categories>
    <anon>python3</anon>
    <anon>yukicoder</anon>
    <anon>競技プログラミング</anon>
  </categories>
  <description>★★に早く慣れたい。 問題 No.118 門松列(2) - yukicoder 長さが違う3本の竹を選べば適当に並べ替えることで門松列にすることができるので，異なる長さの竹を3本選ぶ選び方の総数（同じ長さの竹も区別する）を求めればよい。 同じ長さの竹が何本あるかがわかればあとは計算できる。 例えばという長さの3本の竹を選んだとして，それぞれの竹が本ずつあるとする。このときの門松列の数はである。 あとは，長さが異なる3本の竹を選ぶ方法はitertoolsのcombinationsを利用すれば簡単である。 itertools --- 効率的なループ実行のためのイテレータ生成関数 — Python …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmasutomo.hatenablog.com%2Fentry%2F2020%2F01%2F03%2F205458&quot; title=&quot;yukicoder No.118 門松列(2) - masuTomo’s blog&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>2020-01-03 20:54:58</published>
  <title>yukicoder No.118 門松列(2)</title>
  <type>rich</type>
  <url>https://masutomo.hatenablog.com/entry/2020/01/03/205458</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
