{"categories":["\u6570\u5b66","Python"],"url":"https://inamori.hateblo.jp/entry/20090926/p1","blog_url":"https://inamori.hateblo.jp/","title":"Project Euler 257","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20090926%2Fp1\" title=\"Project Euler 257 - 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>","height":"190","version":"1.0","author_name":"inamori","provider_name":"Hatena Blog","published":"2009-09-26 00:00:00","author_url":"https://blog.hatena.ne.jp/inamori/","description":"\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30aa\u30a4\u30e9\u30fc http://projecteuler.net/index.php?section=problems&id=257 \u56f3\u5f62\u306e\u554f\u984c\u304b\u3068\u601d\u3044\u304d\u3084\u3001\u3061\u3087\u3063\u3068\u8a08\u7b97\u3059\u308b\u3068\u3001\u5358\u306a\u308b\u6574\u6570\u306e\u554f\u984c\u3067\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308b\u3002 from itertools import imapdef gen_triangle(s_limit): for b in range(1, s_limit - 1): for c in range(1, s_limit - b): for a in range(1, s_limit - b - c + 1): yield a, b, cdef is_integral(t): \u2026","type":"rich","blog_title":"inamori\u2019s diary","provider_url":"https://hatena.blog","image_url":null}