{"blog_url":"https://inamori.hateblo.jp/","width":"100%","author_name":"inamori","height":"190","description":"Python\u306eset\u306e\u4ee3\u66ff\u306b\u306a\u308b\u30b3\u30f3\u30c6\u30ca\u306fHashSet\u3068SortedSet\u304c\u3042\u308a\u307e\u3059\u3002Problem 29\u306e\u5c0f\u898f\u6a21\u8d85\u30ca\u30a4\u30fc\u30d6\u7248\u3067\u8003\u3048\u3066\u307f\u307e\u3057\u3087\u3046\u3002Python\u306a\u3089\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002 N = 10 s = set(a ** b for a in xrange(2, N + 1) for b in xrange(2, N + 1)) print len(s) HashSet\u3092\u4f7f\u3046\u3068\u3053\u3046\u306a\u308a\u307e\u3059\u3002 using System; using System.Collections.Generic; using System.Linq; class e029 { static void print<T>(L\u2026","author_url":"https://blog.hatena.ne.jp/inamori/","provider_name":"Hatena Blog","categories":["C#"],"image_url":null,"blog_title":"inamori\u2019s diary","url":"https://inamori.hateblo.jp/entry/20130711/p1","version":"1.0","type":"rich","title":"C#\u3067Project Euler\uff088\uff09 Set","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20130711%2Fp1\" title=\"C#\u3067Project Euler\uff088\uff09 Set - 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":"2013-07-11 00:00:00"}