<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>jeneshicc</author_name>
  <author_url>https://blog.hatena.ne.jp/jeneshicc/</author_url>
  <blog_title>落書き、時々落学</blog_title>
  <blog_url>https://jeneshicc.hatenadiary.org/</blog_url>
  <categories>
    <anon>Haskell</anon>
    <anon>C++</anon>
    <anon>C++</anon>
    <anon>Project Euler</anon>
  </categories>
  <description>けっこう，（といっても，4，5日前だが）に解いた．問題文は簡単．g(k) = 1 if 0 g(k) = g(k-2000) + g(k-1999) if 2000 find g(10^18) (mod 20092010)普通のFibonacciだったら，簡単ですが． そう簡単にはいかない．まぁ，それが今回の問題ですか． Haskellで実装したら，3分位． C++で実装したら，3秒位． NTLをつかったら，0.2秒位．NTLスゲー． おそらく乗算に，FFT乗算を使っているからだろう． しかし，最近C++の速さが魅力になってきた．# Haskellも内部ではFFT乗算使ってる？</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjeneshicc.hatenadiary.org%2Fentry%2F20091008%2F1255005001&quot; title=&quot;Problem258 メモ - 落書き、時々落学&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-10-08 21:30:01</published>
  <title>Problem258 メモ</title>
  <type>rich</type>
  <url>https://jeneshicc.hatenadiary.org/entry/20091008/1255005001</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
