{"published":"2020-06-28 19:31:39","type":"rich","title":"ABC172 D - Sum of Divisors","author_url":"https://blog.hatena.ne.jp/AT274/","url":"https://at274.hatenablog.com/entry/2020/06/28/193139","provider_name":"Hatena Blog","blog_title":"\u3042\u3063\u3068\u306eTECH LOG","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fat274.hatenablog.com%2Fentry%2F2020%2F06%2F28%2F193139\" title=\"ABC172 D - Sum of Divisors - \u3042\u3063\u3068\u306eTECH LOG\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","categories":["\u7af6\u30d7\u30ed"],"author_name":"AT274","blog_url":"https://at274.hatenablog.com/","description":"\u554f\u984c\u539f\u6587 atcoder.jp \u89e3\u6cd5 \u666e\u901a\u306b\u89e3\u3051\u306a\u304b\u3063\u305f\u306e\u3067\u89e3\u8aac\u3092\u30ac\u30f3\u898b\u3057\u305f\u3002 \u30ad\u30fc\u3068\u306a\u308b\u6027\u8cea\u306f\u300c\u3042\u308b\u6570 \u304c \u4f55\u304b\u3067\u5272\u308c\u308b\u3068\u3001\u7b54\u3048\u304c \u3055\u308c\u308b\u300d\u3068\u3044\u3046\u3053\u3068\u3002 \u3067\u3001\u4f8b\u3048\u3070 \u306f\u5f53\u7136\u3069\u308c\u3082 5\u3067\u5272\u308c\u308b\u308f\u3051\u306a\u3093\u3067\u3059\u304c\u3001\u3053\u308c\u306f\u7b54\u3048\u306b \u3055\u308c\u308b\u306e\u3068\u540c\u3058\u3002 \u3064\u307e\u308a\u3001\u7b49\u5dee\u6570\u5217\u306e\u548c\u306e\u516c\u5f0f\u3067\u4e00\u767a\u3067\u51fa\u305b\u307e\u3059\u306d\u3002\u3002\u3002 \u3053\u308c\u3092 \u306b\u3064\u3044\u3066\u3084\u308c\u3070OK \u3002 \u3067\u901a\u308b\u3002 \u5b9f\u88c5 N = int(input()) ans = 0 for x in range(1, N + 1): n = N // x ans += n * (2 * x + (n - 1) * x) // 2 print(ans) \u611f\u60f3 \u6557\u56e0\u306f \u306f\u5207\u308a\u308f\u3051\u306b\u304f\u305d\u3046\u3068\u6c7a\u3081\u2026","provider_url":"https://hatena.blog","image_url":"https://chart.apis.google.com/chart?cht=tx&chl=%20%201%20%5Cleq%20N%20%5Cleq%2010%5E%7B5%7D","height":"190","width":"100%"}