<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>zehnpaard</author_name>
  <author_url>https://blog.hatena.ne.jp/zehnpaard/</author_url>
  <blog_title>Arantium Maestum</blog_title>
  <blog_url>https://zehnpaard.hatenablog.com/</blog_url>
  <categories>
    <anon>Clojure</anon>
    <anon>IT速報</anon>
  </categories>
  <description>前回 まあこれもありかも。 (def coins [500 100 50 10 5 1]) (defn f [[remainder &amp; count-list] coin] (concat ((juxt rem quot) remainder coin) count-list)) (defn coin-count2 [n] (-&gt;&gt; coins (reduce f (list n)) next reverse)) reduceの戻り値を、これまでの商のリストの先頭に余を加えたものにすると比較的シンプル。 ただ、これだとリストの先頭とそれ以外で意味が違ってくるので、そこはちょっと悲しい。 しかしd…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzehnpaard.hatenablog.com%2Fentry%2F2016%2F05%2F07%2F100643&quot; title=&quot;簡単な硬貨問題 from IT速報3 - Arantium Maestum&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-05-07 10:06:43</published>
  <title>簡単な硬貨問題 from IT速報3</title>
  <type>rich</type>
  <url>https://zehnpaard.hatenablog.com/entry/2016/05/07/100643</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
