1、简单背包问题,动态规划 // dp[i][j] // 1. actions[i][0] <= j: dp[i][j] = Math.max(dp[i - 1][j], dp[i - 1][j - actions[i][0]] + actions[i][1]); // 2. else: dp[i][j] = dp[i - 1][j] public int maxScore(int energy, int[][] actions) { // write code here int n = actions.length, dp[]...