{"width":"100%","provider_name":"Hatena Blog","categories":["PowerShell"],"height":"190","type":"rich","provider_url":"https://hatena.blog","published":"2012-06-14 00:00:00","blog_title":"inamori\u2019s diary","image_url":null,"blog_url":"https://inamori.hateblo.jp/","url":"https://inamori.hateblo.jp/entry/20120614/p1","version":"1.0","description":"Problem 1\u524d\u56de\u3001\u3044\u3061\u304a\u3046Problem 1\u3092\u89e3\u304d\u307e\u3057\u305f\u304c\u3001\u540c\u3058\u3088\u3046\u306a\u30b3\u30fc\u30c9\u304c\u4e26\u3093\u3067\u3044\u305f\u306e\u3067\u3001\u305d\u3053\u3092\u95a2\u6570\u5316\u3057\u307e\u3057\u3087\u3046\u3002 function f($n, $d) { [int]$m = [math]::floor(($n - 1) / $d) $m * ($m + 1) / 2 * $d } $n = 1000 (f $n 3) + (f $n 5) - (f $n 15) \u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002\u95a2\u6570\u306e\u5b9a\u7fa9\u306ffunction\u3067\u59cb\u3081\u307e\u3059\u3002 \u95a2\u6570\u306e\u6700\u5f8c\u306e\u884c\u3001\u3053\u3053\u306f\u4ee3\u5165\u3067\u306a\u304f\u5f0f\u3092\u8a55\u4fa1\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u8a55\u4fa1\u3055\u308c\u305f\u5024\u304c\u623b\u308a\u5024\u3068\u306a\u308a\u307e\u3059\u3002\u8a55\u4fa1\u304c\u8907\u6570\u3042\u308b\u5834\u5408\u306f\u307e\u305f\u305d\u306e\u3046\u3061\u51fa\u3066\u6765\u308b\u3068\u601d\u3044\u307e\u3059\u3002 \u547c\u3073\u51fa\u3057\u5074\u306f\u3001 f(\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20120614%2Fp1\" title=\"Windows PowerShell\u3067Project Euler\uff083\uff09 \u95a2\u6570 - 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>","author_name":"inamori","title":"Windows PowerShell\u3067Project Euler\uff083\uff09 \u95a2\u6570","author_url":"https://blog.hatena.ne.jp/inamori/"}