http://acm.hdu.edu.cn/showproblem.php?pid=2069 暴力打表 注意最多只有100 个硬币 总和上限为250 然后按照要求枚举就好了 ac代码 http://paste.ubuntu.com/8520702/