{"author_name":"tsutomu3","published":"2007-12-13 00:00:00","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftsutomu7.hateblo.jp%2Fentry%2F2007%2F12%2F13%2F000000\" title=\"\u30d0\u30a4\u30ca\u30ea\u30b5\u30fc\u30c1\u306b\u30d0\u30b0 - tsutomu3\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>","provider_name":"Hatena Blog","categories":[],"description":"\u30d0\u30a4\u30ca\u30ea\u30b5\u30fc\u30c1\u306b\u30d0\u30b0\u306e\u8a18\u4e8b\u304b\u3089\u3002 http://iiyu.asablo.jp/blog/2006/06/05/393464 int mid =(low + high) / 2;\u3060\u3068\u3001\u30aa\u30fc\u30d0\u30d5\u30ed\u30fc\u306e\u5371\u967a\u304c\u3042\u308b\u3068\u3044\u3046\u3082\u306e\u3002\u4fee\u6b63\u306f\u3001int mid = low + ((high - low) / 2);\u3068\u3059\u308b\u3002 int mid = low / 2 + high / 2; \u3067\u306f\u6b63\u3057\u304f\u306a\u3044\u3002 \u300c(X+Y)/2\u300d\u3092 Visual Studio 2005\\Projects \u306e\u4e0b\u3067\u6b63\u898f\u8868\u73fe\u3067\u691c\u7d22\u3057\u305f\u3089\u3001200\u7b87\u6240\u8fd1\u304f\u3042\u3063\u305f\u3002\u307b\u3068\u3093\u3069\u306f\u3001\u7121\u95a2\u4fc2\uff08(n+1)/2\u306a\u3069\uff09\u304b\u5909\u6570\u304cdoubule\u3060\u3002\u6b8b\u308a\u306f\u3001\u63cf\u753b\u6642\u306e\u3082\u306e\u304c\u2026","height":"190","url":"https://tsutomu7.hateblo.jp/entry/2007/12/13/000000","type":"rich","blog_title":"tsutomu3\u2019s diary","title":"\u30d0\u30a4\u30ca\u30ea\u30b5\u30fc\u30c1\u306b\u30d0\u30b0","image_url":null,"author_url":"https://blog.hatena.ne.jp/tsutomu3/","blog_url":"https://tsutomu7.hateblo.jp/","provider_url":"https://hatena.blog","version":"1.0"}