<?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>PE</anon>
    <anon>数学</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>見方を変えて、まず、左辺第2項を固定します。そうすると第1項の範囲が絞れます。例えば、第2項が2だったら、第1項は1000〜4999であることがわかります。そして掛け算をして、数字が1回ずつ使われているかをチェックします。 コードによる速度の違いをチェックしましょう。その前に、計算量を概算します。Nを基数とします。10進ならN=10です。12進なら、N=12で、11個の数字で同様の掛け算を表現します。最初のコードは (N-1)!*[N/4] ≒ (N-1)N/eN/4 ≒ NN/eN+1/4 個の組合せについてチェックします。3番目のコードは少し難しいですが、 N[(N-1)/2] / 2 +…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20091210%2Fp1&quot; title=&quot;Project Euler 32（2） - 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>2009-12-10 00:00:00</published>
  <title>Project Euler 32（2）</title>
  <type>rich</type>
  <url>https://inamori.hateblo.jp/entry/20091210/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
