riverphoenix

导航

 

2012年1月30日

摘要: (define (count-change amount) (cc amount 5) )(define (cc amount kinds-of-coins) (cond((= amount 0) 1) ((or (< amount 0) (= kinds-of-coins 0)) 0) (else (+ (cc amount (- kinds-of-coins 1)) (cc (- amount (first-denomitation kinds-of-coins)) kinds-of-coins))) ))(define (first-denomitation... 阅读全文
posted @ 2012-01-30 22:49 riverphoenix 阅读(307) 评论(0) 推荐(0) 编辑