题解列表

筛选

采药 (C++代码)

摘要:解题思路:贪心算法不适合这题,使用动态规划(递归的一种类似形式)方法一: #include<iostream> # include<cstring> # define max(a,b) ( a ……