{"provider_url":"https://hatena.blog","published":"2010-02-03 00:00:01","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20100203%2Fp1\" title=\"Project Euler 28 - 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>","url":"https://inamori.hateblo.jp/entry/20100203/p1","height":"190","type":"rich","author_name":"inamori","width":"100%","description":"http://projecteuler.net/index.php?section=problems&id=28 \u87ba\u65cb\u30921\u6b69\u305a\u3064\u8fbf\u3063\u3066\u3044\u304f\u3068\u3053\u3046\u66f8\u3051\u308b\u3002\u305f\u3060\u3057\u3001\u9045\u3044\u3002 n = 1001 next (x, y) | y >= 0 && y >= abs(x) = (x + 1, y) | x = abs(y) = (x, y + 1) | y = abs(x) = (x - 1, y) | otherwise = (x, y - 1)is_diagonal (x, y) = abs(x) == abs(y)a = (0, 0):[ next(pt) | pt main = print(sum(m\u2026","version":"1.0","categories":["Haskell"],"title":"Project Euler 28","author_url":"https://blog.hatena.ne.jp/inamori/","blog_url":"https://inamori.hateblo.jp/","image_url":null,"blog_title":"inamori\u2019s diary","provider_name":"Hatena Blog"}