码迷,mamicode.com
首页 > 其他好文 > 详细

[CareerCup] 9.8 Represent N Cents 美分的组成

时间:2015-09-26 14:44:12      阅读:534      评论:0      收藏:0      [点我收藏+]

标签:

 

9.8 Given an infinite number of quarters (25 cents), dimes (10 cents), nickels (5 cents) and pennies (1 cent), write code to calculate the number of ways of representing n cents.

 

[CareerCup] 9.8 Represent N Cents 美分的组成

标签:

原文地址:http://www.cnblogs.com/grandyang/p/4840713.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!