<?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>a = 50 b = 2000 c = 40 main = putStrLn s s :: String s = show.sum $ map f [0..b] f :: Integer -&gt; Integer f n | n &gt; b = n - c | n &lt;= b = f (a+ f (a+ f (a+ f (a+n)))) 試験勉強してたらHaskell触りたくなって 340番の問題に挑戦！ これは例題として載っていたもの。 動かしてみたらちゃんと答えがでました ここで、 a = 7^21 b = 21^7 c = 12^7 として sを計算してやるとメモリが足りずに計算できず......…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwvogel00.hatenadiary.org%2Fentry%2F20110720%2F1311170473&quot; title=&quot;Project Euler 340 - 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>2011-07-20 23:01:13</published>
  <title>Project Euler 340</title>
  <type>rich</type>
  <url>https://wvogel00.hatenadiary.org/entry/20110720/1311170473</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
