{"blog_title":"inamori\u2019s diary","url":"https://inamori.hateblo.jp/entry/20100324/p1","title":"Project Euler 91","image_url":null,"description":"http://projecteuler.net/index.php?section=problems&id=91 \u70b9P\u3092\u8ef8\u4e0a\u4ee5\u5916\u306b\u53d6\u3063\u3066\u3001P\u3092\u901a\u308aOP\u306b\u5782\u76f4\u306b\u76f4\u7dda\u3092\u5f15\u304f\u3002\u305d\u306e\u76f4\u7dda\u4e0a\u306e\u683c\u5b50\u70b9\u304cQ\u3002 f n = 3 * n * n + sum [ g (x,y) | x <- [1..n], y <- [1..n] ] g (x,y) = (min (div x dx) (div (n - y) dy)) + (min (div y dy) (div (n - x) dx)) where d = gcd x y dx = div y d dy = div x d n = 50 main = pri\u2026","author_name":"inamori","width":"100%","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20100324%2Fp1\" title=\"Project Euler 91 - 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>","published":"2010-03-24 00:00:00","provider_name":"Hatena Blog","height":"190","blog_url":"https://inamori.hateblo.jp/","version":"1.0","categories":["Haskell"],"type":"rich","author_url":"https://blog.hatena.ne.jp/inamori/"}