{"url":"https://zehnpaard.hatenablog.com/entry/2016/05/07/100643","image_url":null,"height":"190","author_name":"zehnpaard","blog_title":"Arantium Maestum","author_url":"https://blog.hatena.ne.jp/zehnpaard/","blog_url":"https://zehnpaard.hatenablog.com/","provider_url":"https://hatena.blog","categories":["Clojure","IT\u901f\u5831"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzehnpaard.hatenablog.com%2Fentry%2F2016%2F05%2F07%2F100643\" title=\"\u7c21\u5358\u306a\u786c\u8ca8\u554f\u984c from IT\u901f\u58313 - Arantium Maestum\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"\u7c21\u5358\u306a\u786c\u8ca8\u554f\u984c from IT\u901f\u58313","description":"\u524d\u56de \u307e\u3042\u3053\u308c\u3082\u3042\u308a\u304b\u3082\u3002 (def coins [500 100 50 10 5 1]) (defn f [[remainder & count-list] coin] (concat ((juxt rem quot) remainder coin) count-list)) (defn coin-count2 [n] (->> coins (reduce f (list n)) next reverse)) reduce\u306e\u623b\u308a\u5024\u3092\u3001\u3053\u308c\u307e\u3067\u306e\u5546\u306e\u30ea\u30b9\u30c8\u306e\u5148\u982d\u306b\u4f59\u3092\u52a0\u3048\u305f\u3082\u306e\u306b\u3059\u308b\u3068\u6bd4\u8f03\u7684\u30b7\u30f3\u30d7\u30eb\u3002 \u305f\u3060\u3001\u3053\u308c\u3060\u3068\u30ea\u30b9\u30c8\u306e\u5148\u982d\u3068\u305d\u308c\u4ee5\u5916\u3067\u610f\u5473\u304c\u9055\u3063\u3066\u304f\u308b\u306e\u3067\u3001\u305d\u3053\u306f\u3061\u3087\u3063\u3068\u60b2\u3057\u3044\u3002 \u3057\u304b\u3057d\u2026","provider_name":"Hatena Blog","width":"100%","version":"1.0","type":"rich","published":"2016-05-07 10:06:43"}