{"blog_url":"https://inamori.hateblo.jp/","image_url":null,"published":"2010-03-30 00:00:00","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","author_name":"inamori","title":"Project Euler 2\uff082\uff09","description":"takewhile\u3082filter\u3068\u540c\u69d8\u306b\u5b9a\u7fa9\u3059\u308b\u3002 N\u4ee5\u4e0b\u307e\u3067\u5024\u3092\u51fa\u3059\u3068\u304d\u306b\u3001 const int N = (int)4e6; takewhile([] (int n) { return n <= N; }, fib()); \u3053\u308c\u3060\u3068N\u304c\u898b\u3048\u306a\u3044\u3002[]\u306e\u4e2d\u306bN\u3092\u66f8\u3044\u3066\u3001 const int N = (int)4e6; takewhile([N] (int n) { return n <= N; }, fib()); \u3068\u3059\u308b\u3068\u5024\u304c\u30b3\u30d4\u30fc\u3055\u308c\u3066\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308b\u3002","blog_title":"inamori\u2019s diary","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20100330%2Fp2\" title=\"Project Euler 2\uff082\uff09 - inamori\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","version":"1.0","categories":["PE","C++"],"url":"https://inamori.hateblo.jp/entry/20100330/p2","height":"190","author_url":"https://blog.hatena.ne.jp/inamori/"}