C语言程序设计100例之(35):邮票组合
摘要:例35 邮票组合 问题描述 小明有四张3分的邮票和三张5分的邮票,用这些邮票中的一张或若干张可以得到多少种不同的邮资? 输入格式 无输入 输出格式 所有能得到的不同邮资。 输入样例 无 输出样例 …… (省略,共19个数) (1)编程思路。 定义数组int a[28],所有元素初始值全为0,a[i]
阅读全文
posted @ 2021-09-09 20:20
我懂了,‘A’-'0'=17,中间有7个符号
二进制加法那一题 输入 0 0 时结果错误
学c的都是大佬,膜拜
a good blog of introducing Greedy algorithm to the first learners, thank you!
posted @ 2021-09-09 20:20
posted @ 2021-09-09 20:15
Powered by:
博客园
Copyright © 2025 aTeacher
Powered by .NET 9.0 on Kubernetes