1.舞蹈选动作----01背包 public class Main1 { public int maxScore(int energy, int[][] actions) { // write code here action[0]体力 action【1】分数 int[] dp = new int[energy + 1];//dp[i]表示体力为i的最大得分 for (int[] action : actions) { for (int i = energy; i >= action[0]; i--) ...