{"image_url":null,"published":"2009-12-02 00:00:00","author_name":"inamori","title":"Project Euler 29\uff081\uff09","author_url":"https://blog.hatena.ne.jp/inamori/","url":"https://inamori.hateblo.jp/entry/20091202/p1","height":"190","description":"Problem 29 \uff08\u7565\uff09ab 2 \u2264 a \u2264 100, 2 \u2264 b \u2264 100\u3067\u751f\u6210\u3055\u308c\u308b\u6570\u5217\u3067\u7570\u306a\u308b\u9805\u306f\u3044\u304f\u3064\u3042\u308b\u304b\u3002 http://projecteuler.net/index.php?section=problems&id=29 Python\u306a\u3089100100\u3082\u7c21\u5358\u306b\u8a08\u7b97\u3067\u304d\u308b\u306e\u3067\u3001\u305d\u306e\u307e\u307e\u66f8\u3051\u3070\u7b54\u3048\u306f\u51fa\u3066\u304d\u307e\u3059\u3002 from itertools import productN = 100 print len(set(map(lambda x: x[0] ** x[1], product(range(2, N + 1), repeat = 2))))\u3057\u304b\u3057\u3001N=1000\u3068\u3059\u308b\u3068\u30e1\u30e2\u30ea\u304c\u8db3\u2026","width":"100%","provider_name":"Hatena Blog","categories":["PE","\u6570\u5b66","\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"blog_url":"https://inamori.hateblo.jp/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20091202%2Fp1\" title=\"Project Euler 29\uff081\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>","type":"rich","version":"1.0","provider_url":"https://hatena.blog","blog_title":"inamori\u2019s diary"}