<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>wvogel00</author_name>
  <author_url>https://blog.hatena.ne.jp/wvogel00/</author_url>
  <blog_title>wvogel日記</blog_title>
  <blog_url>https://wvogel00.hatenadiary.org/</blog_url>
  <categories>
    <anon>Haskell</anon>
  </categories>
  <description>permutationsを使わずに、昨日書いたn-Queenを書き直してみた。 全列挙ではないので、少しだけ速度が改善された。 しかし、まだまだ改善の余地あり。 import Data.List type Pos = Int main = getLine &gt;&gt;= print.nQueen.read nQueen :: Int -&gt; [Pos] nQueen n = backtrack n [] --駒が他のクイーンにとられない notTaken ::[Pos] -&gt; Bool notTaken [_] = True notTaken ls = notSlanting (zip ls [1..]…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwvogel00.hatenadiary.org%2Fentry%2F20120113%2F1326439882&quot; title=&quot;n-Queen(2) - wvogel日記&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>2012-01-13 16:31:22</published>
  <title>n-Queen(2)</title>
  <type>rich</type>
  <url>https://wvogel00.hatenadiary.org/entry/20120113/1326439882</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
