/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param cost int整型一维数组 * @param costLen int cost数组长度 * @return int整型 */ #include <math.h> #define min(x,y) x<y?x:y int minCostClimbingStairs(int* cost, int costLen ) { // write code here if(costLen == 1) { return cost[0]; } int dp[costLen+1]; ...