通过枚举验证寻找答案在本地运行以下程序即可, 实测需要约两分钟 #include <bits/stdc++.h> int n1[26]{ 2,4,5,6,7,8,10,11,12,13,14,15,18,19,20, 21,22,23,24,25,27,28,30,32,33,35 }, dp[10]; // ^ 建立从[0-25]至题目中空位的映射关系 ^ 计算相同子序列的长度 int pop_ct(int t) { int res = 0; while (t) { ++res; t &= t - 1; } return res; } int main() { strin...