{"author_name":"inamori","image_url":null,"provider_url":"https://hatena.blog","url":"https://inamori.hateblo.jp/entry/20100318/p2","height":"190","type":"rich","version":"1.0","width":"100%","provider_name":"Hatena Blog","blog_title":"inamori\u2019s diary","description":"takewhile\u306a\u3069\u306e\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\u306f\u95a2\u6570\u3092\u5f15\u6570\u306b\u6301\u3064\u3002\u3057\u304b\u3057\u3001\u578b\u6307\u5b9a\u3092\u3057\u305f\u304f\u306a\u3044\u306e\u3067\u30e9\u30e0\u30c0\u306f\u4f7f\u3048\u305a\u3001\u95a2\u6570\u306e\u578b\u3082\u9650\u3089\u308c\u305f\u3082\u306e\u306b\u306a\u308b\u3002\u5f15\u6570\u304c\u4e00\u3064\u3067\u3042\u308c\u3070\u3044\u3044\u304c\u3001\u4ed6\u306b\u74b0\u5883\u304b\u3089\u3082\u3063\u3066\u304f\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u3002 \u305d\u3053\u3067\u3001\u95a2\u6570\u306f2\u3064\u306e\u5f15\u6570\u3092\u53d6\u308b\u3082\u306e\u3082\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u3001\u305d\u308c\u306f2\u3064\u76ee\u306e\u5f15\u6570\u3092void *\u3067\u53d7\u3051\u308b\u3082\u306e\u3068\u3059\u308b\u3002\u3053\u3093\u306a\u611f\u3058\u306e\u95a2\u6570\u3002 bool le_sq(int p, void *env) { int n = *(int *)env; return p * p <= n; } takewhile\u3082\u3082\u3046\u4e00\u3064\u5f15\u6570\u3092\u53d6\u308b\u3002 bool is_prime(int n) { return all([n](int p) \u2026","title":"Project Euler 7\uff082\uff09","blog_url":"https://inamori.hateblo.jp/","published":"2010-03-18 00:00:00","categories":["PE","C++"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20100318%2Fp2\" title=\"Project Euler 7\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>","author_url":"https://blog.hatena.ne.jp/inamori/"}