摘要: In the N×M grid array, there is a start-cell, name A, and a end-cell, name B. The problem is finding the shortest routing scheme (i.e. the shortest pa 阅读全文
posted @ 2020-12-06 10:33 BIGBIGGUAI 阅读(730) 评论(0) 推荐(0) 编辑
摘要: 输入格式:第一行输入需要凑的钱数 m 和硬币的种类 n (0<m<100,0<n<10),第二行输入 n 种硬币的具体币值,假设硬币供应量无限多。 输出格式:输出最少需要的硬币个数 输入样例:在这里给出一组输入。例如: 6 31 3 4输出样例:在这里给出相应的输出。例如: 2 代码实现: pack 阅读全文
posted @ 2020-11-29 10:30 BIGBIGGUAI 阅读(889) 评论(0) 推荐(0) 编辑