### 第四题 为什么只a了18(看完评论区,已经懂了没有初始化dp数组!) public class FourthDemo { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt();//表示A的长度 int M = sc.nextInt();//表示B的长度 int[] A = new int[N]; int[] B = new int[M]; ...