{"blog_title":"\u4f59\u767d\u306e\u66f8\u304d\u306a\u3050\u308a","categories":[],"blog_url":"https://auewe.hatenablog.com/","image_url":null,"published":"2016-03-07 02:08:58","width":"100%","author_url":"https://blog.hatena.ne.jp/auewe/","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","type":"rich","version":"1.0","height":"190","url":"https://auewe.hatenablog.com/entry/2016/03/07/020858","description":"\u4e45\u3057\u3076\u308a\u306bHaskell\u3067\u904a\u3093\u3067\u305f\u3089\u30cf\u30de\u3063\u305f\u306e\u3067\u30e1\u30e2\u3002 100\u306e\u968e\u4e57 100!=1*2*...*100 \u306e\u6841\u6570\u3092\u6c42\u3081\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u3044\u305f\u3002 main = print $ kaijo 100 kaijo n = length $ show $ product [1..n] -- 158\u304c\u8868\u793a\u3055\u308c\u308b\u3002 \u4e0a\u8a18\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u6b63\u3057\u3044\u5024(158)\u3092\u8fd4\u3059\u304c\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u578b\u3092\u660e\u793a\u3059\u308b\u3068\u3001\u8aa4\u3063\u305f\u5024(0)\u3092\u8fd4\u3059\u3002 main = print $ kaijo 100 kaijo :: Int -> Int kaijo n = length $ show $ product [1..n] -- 0\u304c\u8868\u793a\u3055\u308c\u308b\u3002\u306a\u3093\u3067\u3084\u2026","title":"Haskell\u306e\u578b\u63a8\u8ad6\u3067\u30cf\u30de\u3063\u305f\u8a71","author_name":"auewe","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fauewe.hatenablog.com%2Fentry%2F2016%2F03%2F07%2F020858\" title=\"Haskell\u306e\u578b\u63a8\u8ad6\u3067\u30cf\u30de\u3063\u305f\u8a71 - \u4f59\u767d\u306e\u66f8\u304d\u306a\u3050\u308a\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}