<?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>
    <anon>プログラミング</anon>
    <anon>Python</anon>
  </categories>
  <description>数独とかナンプレとか言っているものをやっていると、自動で解きたくなる。あれは、いかに早く気づくかという話で、どうも苦手。 例えば、3つのまだ埋まっていないマスがあって、それぞれ、1と2、2と3、1と3が入る可能性があるとする。また、3つのマスには同じ数字が入ってはいけない。そのマスには入る数字の組合せは？ 要するに、すべての順列に対して妥当かどうかを検証すればよい。 def perm(l): if len(l) &gt; 1: for i in range(len(l)): for e in perm(l[:i] + l[i+1:]): yield l[i:i+1] + e else: yield …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20081116%2Fp1&quot; title=&quot;ナンプレ（1） - 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>2008-11-16 00:00:01</published>
  <title>ナンプレ（1）</title>
  <type>rich</type>
  <url>https://inamori.hateblo.jp/entry/20081116/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
