{"type":"rich","blog_url":"https://inamori.hateblo.jp/","version":"1.0","image_url":null,"height":"190","width":"100%","author_url":"https://blog.hatena.ne.jp/inamori/","description":"\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30aa\u30a4\u30e9\u30fc http://projecteuler.net/index.php Q173. \u6b63\u65b9\u5f62\u306e\u30bf\u30a4\u30eb\u3092\u6b63\u65b9\u5f62\u4e0a\u306b\u4e26\u3079\u308b\u3002\u305f\u3060\u3057\u3001\u4e2d\u592e\u306b\u6b63\u65b9\u5f62\u306e\u7a74\u3092\u958b\u3051\u308b\u3002100\u4e07\u500b\u307e\u3067\u306e\u30bf\u30a4\u30eb\u3092\u4f7f\u3063\u305f\u3068\u304d\u3001\u3053\u306e\u5f62\u72b6\u306f\u4f55\u901a\u308a\u3067\u304d\u308b\u304b\u3002 \u5916\u5074\u306bn\u679a\u3001m\u5c64\u4e26\u3079\u305f\u3068\u3059\u308b\u3068\u3001\u305d\u306e\u5408\u8a08\u679a\u6570\u306f\u3001n2 - (n - 2m)2 = 4m(n - m) \u3067 n - m > m\u3002 \u3053\u306e\u5e73\u6613\u306a\u554f\u984c\u306f\u3001\u6b21\u306e\u554f\u984c\u306e\u524d\u632f\u308a\u306e\u5f79\u5272\u3092\u62c5\u3063\u3066\u3044\u308b\u3002 from math import sqrtN = 1000000 M = N / 4 print sum(map(lambda m: M / m - m, xrange(1, int\u2026","provider_name":"Hatena Blog","categories":["\u6570\u5b66","Python"],"url":"https://inamori.hateblo.jp/entry/20090601/p1","blog_title":"inamori\u2019s diary","author_name":"inamori","published":"2009-06-01 00:00:01","title":"Project Euler 173","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20090601%2Fp1\" title=\"Project Euler 173 - 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>"}