{"blog_title":"inamori\u2019s diary","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20120708%2Fp1\" title=\"\u4e0a\u4e0b\u3067\u8a08\u7b97\u6cd5\u3092\u5909\u3048\u308b - 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>","blog_url":"https://inamori.hateblo.jp/","categories":["\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0"],"type":"rich","author_name":"inamori","url":"https://inamori.hateblo.jp/entry/20120708/p1","provider_url":"https://hatena.blog","width":"100%","description":"\u6b21\u306e\u95a2\u6570\u306b\u3064\u3044\u3066\u8003\u3048\u307e\u3059\u3002 \u3053\u308c\u3092\u305d\u306e\u307e\u307e\u66f8\u304f\u3068\u3001k\u306fn\u307e\u3067\u3067\u5341\u5206\u3060\u304b\u3089\u3001 def H(n): return sum(n / k for k in xrange(1, n + 1)) \u3067\u3059\u306d\u3002O(n)\u306e\u8a08\u7b97\u91cf\u306e\u306f\u305a\u3067\u3059\uff08n\u304c\u5c0f\u3055\u3051\u308c\u3070\uff09\u3002 \u3055\u3066\u3001\u3053\u306e\u8a08\u7b97\u3092\u901f\u304f\u3067\u304d\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002\u307e\u305a\u3001n = 10\u3067\u5177\u4f53\u7684\u306a\u8a08\u7b97\u3092\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002 H(n) = 10/1 + 10/2 + 10/3 + 10/4 + 10/5 + 10/6 + 10/7 + 10/8 + 10/9 + 10/10 = 10 + 5 + 3 + 2 + 2 + 1 + 1 + 1 + 1 + 1 \u3067\u3059\u3002\u6700\u5f8c\u306e\u307b\u3046\u30011\u304c\u7d9a\u304d\u307e\u3059\u3088\u306d\u2026","title":"\u4e0a\u4e0b\u3067\u8a08\u7b97\u6cd5\u3092\u5909\u3048\u308b","author_url":"https://blog.hatena.ne.jp/inamori/","version":"1.0","image_url":null,"provider_name":"Hatena Blog","published":"2012-07-08 00:00:00","height":"190"}