{"description":"\u554f\u984c\u6587 Problem 9 \u30d4\u30bf\u30b4\u30e9\u30b9\u306e\u4e09\u3064\u7d44(\u30d4\u30bf\u30b4\u30e9\u30b9\u306e\u5b9a\u7406\u3092\u6e80\u305f\u3059\u81ea\u7136\u6570)\u3068\u306fa Solution 3\u91cd\u30eb\u30fc\u30d7\u3092\u3072\u3068\u3064\u6e1b\u3089\u3059\u5de5\u592b\u3092\u3059\u308b\u306e\u304c\u30b3\u30c4\uff1f pythagorean ?= (a, b, c) -> a*a + b*b == c*c for a in [1..1000] for b in [a..1000-a] c = 1000 - a - b if pythagorean? a, b, c console.log a*b*c \u9806\u8def\uff1aCoffeeScript\u3067Project Euler #10 \u9006\u8def\uff1aCoffeeScript\u3067Project Euler #8","height":"190","published":"2012-03-31 00:00:02","provider_url":"https://hatena.blog","title":"CoffeeScript\u3067Project Euler #9","type":"rich","image_url":null,"provider_name":"Hatena Blog","author_name":"xef","blog_url":"https://xef.hatenadiary.org/","categories":["CoffeeScript"],"version":"1.0","width":"100%","blog_title":"Soleil cou coupe","url":"https://xef.hatenadiary.org/entry/20120331/p1","author_url":"https://blog.hatena.ne.jp/xef/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxef.hatenadiary.org%2Fentry%2F20120331%2Fp1\" title=\"CoffeeScript\u3067Project Euler #9 - Soleil cou coupe\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}