{"author_name":"inamori","height":"190","image_url":null,"blog_url":"https://inamori.hateblo.jp/","url":"https://inamori.hateblo.jp/entry/2019/07/19/092940","author_url":"https://blog.hatena.ne.jp/inamori/","provider_url":"https://hatena.blog","width":"100%","categories":["Julia"],"version":"1.0","published":"2019-07-19 09:29:40","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F2019%2F07%2F19%2F092940\" title=\"Julia\u3067Project Euler(6) - 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>","type":"rich","description":"Problem 6 https://projecteuler.net/problem=6 function e006(n) return sum(1:n)^2 - sum(k*k for k in 1:n) end N = parse(Int, ARGS[1]) println(e006(N)) \u5185\u5305\u8868\u8a18\u306fPython\u3068\u540c\u69d8\u306b\u4f7f\u3048\u308b\u3002\u3079\u304d\u4e57\u306f\u3001**\u3067\u306f\u306a\u304f^\u3092\u4f7f\u3046\u3002Python\u3084C\u306fXOR\u3092^\u306b\u5145\u3066\u3066\u3044\u305f\u304c\u3001\u305d\u308c\u3067\u306fJulia\u306f\u30d3\u30c3\u30c8\u6f14\u7b97\u5b50\u3092\u3069\u3046\u3057\u3066\u3044\u308b\u306e\u3060\u308d\u3046\u3002https://docs.julialang.org/en/v1/manual/mathematical-operations/#B\u2026","title":"Julia\u3067Project Euler(6)","blog_title":"inamori\u2019s diary"}