<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>minus9d</author_name>
  <author_url>https://blog.hatena.ne.jp/minus9d/</author_url>
  <blog_title>minus9d's diary</blog_title>
  <blog_url>https://minus9d.hatenablog.com/</blog_url>
  <categories>
    <anon>python</anon>
    <anon>programming contest</anon>
  </categories>
  <description>Pythonのitertoolsモジュールには、イテレーションに関する便利関数が多数用意されています。この記事では、その中でも競技プログラミングで全列挙に使える関数についてまとめます。Python 2.x, 3.xのどちらでも使えます。 Google Code JamのSmallでは全列挙するだけで解ける問題が出ることが多いです。一通りどんな関数があるか知っておきましょう。 import文 スクリプトの冒頭に import itertoolsと書いてあるものとします。 1, 2, 3と書かれた玉が入った袋から、2つの玉を取り出す (3P2の順列) nums = [1, 2, 3] for ba…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fminus9d.hatenablog.com%2Fentry%2F2017%2F04%2F30%2F110855&quot; title=&quot;Pythonのitertoolsでできる全列挙のまとめ - minus9d&amp;#39;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>2017-04-30 11:08:55</published>
  <title>Pythonのitertoolsでできる全列挙のまとめ</title>
  <type>rich</type>
  <url>https://minus9d.hatenablog.com/entry/2017/04/30/110855</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
