{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20140518%2Fp1\" title=\"Project Euler 472 - 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>","categories":["\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"image_url":null,"blog_url":"https://inamori.hateblo.jp/","author_name":"inamori","version":"1.0","published":"2014-05-18 00:00:00","url":"https://inamori.hateblo.jp/entry/20140518/p1","author_url":"https://blog.hatena.ne.jp/inamori/","type":"rich","height":"190","description":"http://projecteuler.net/index.php?section=problems&id=47218\u7740\u3002 \u6700\u521d\u3001\u554f\u984c\u306e\u56f3\u306b\u3042\u308b\u3088\u3046\u306a\u30ca\u30a4\u30fc\u30d6\u306a\u5b9f\u88c5\u3082\u306a\u304b\u306a\u304b\u3067\u304d\u306a\u304b\u3063\u305f\u3002\u3057\u304b\u3082\u3001\u3053\u308c\u3060\u3068N = 500\u3055\u3048\u96e3\u3057\u3044\u3002\u500b\u6570\u3060\u3051\u306a\u3089\u7c21\u5358\u3060\u3068\u601d\u3063\u3066\u7d44\u3093\u3067\u307f\u305f\u3002\u3057\u304b\u3057\u3001\u3053\u308c\u3060\u3068O(N^2)\u304b\u304b\u308b\u3002O(NlogN)\u3092\u601d\u3044\u3064\u3044\u305f\u306e\u3067\u3001\u663c\u3092\u98df\u3079\u305f\u304b\u3089\u3001\u9811\u5f35\u3063\u3066\u7d44\u3093\u3067\u307f\u305f\u3002\u3057\u304b\u3057\u3001\u3053\u308c\u3067\u306f2e6\u79d2\u4ee5\u4e0a\u304b\u304b\u308a\u305d\u3046\u3060\u3002\u3057\u304b\u3082\u3001PyPy\u3067\u3053\u308c\u3067Python\u306a\u308930\u500d\u4ee5\u4e0a\u304b\u304b\u3063\u305f\u3002\u3064\u307e\u308aC++\u3067\u66f8\u3044\u3066\u3082\u5287\u7684\u306b\u306f\u901f\u304f\u306a\u3089\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3060\u3002 \u663c\u5bdd\u3057\u306a\u304c\u3089\u8003\u3048\u305f\u3002\u3053\u3093\u306aO(NlogN)\u306f\u8981\u3089\u306a\u304b\u3063\u305f\u3002\u5168\u304f\u56de\u308a\u2026","blog_title":"inamori\u2019s diary","width":"100%","title":"Project Euler 472","provider_url":"https://hatena.blog","provider_name":"Hatena Blog"}