<?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>Problem 36この問題は、単に2と10の両方の基数で回文数になるかを調べるという単純な方法でも十分速いです。自然数nの回文数の判定はO(logn)の計算量なので、NまででO(NlogN)の計算量です。回文数を生成するほうが速いです。10進で回文数を生成して、2進で回文数か判定します。生成にはO(N0.5)かかって、かつ回文数はO(N0.5)個あるので、全体ではO(N0.5logN)となります。回文数の生成には分割統治法を使うと、速くてメモリも少なくて済みます。例えば、1234321なら、1200021と343に分けて考えます。これでO(N0.5)になります。マージを使うとO(N0.5)に…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20130328%2Fp1&quot; title=&quot;Project Euler 36 - 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>2013-03-28 00:00:00</published>
  <title>Project Euler 36</title>
  <type>rich</type>
  <url>https://inamori.hateblo.jp/entry/20130328/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
