摘要: 问题描述:“Given some Chinese Coins (硬币) (three kinds-- 1, 2, 5), and their number is num_1, num_2 and num_5 respectively, please output the minimum value that you cannot pay with given coins.”这是一道基本的母函数应用题。#include#includeint c1[8010],c2[8010];int main(){ int a,b,c,sum,a1[4]={2,5},i,j,k; while(sca... 阅读全文
posted @ 2013-12-14 23:35 段少 阅读(161) 评论(0) 推荐(0) 编辑