PAT甲级:1045 Favorite Color Stripe_pat甲级1045测试样例-CSDN博客文章浏览阅读153次。不同的是,对于第i个数字和第j个数字同时出现在子序列的情况,由于a中的数字可以在公子序列中出现多次,当满足b[j] == a[i]时,状态dp[i][j]由dp[i][j - 1]转移而来。其中a子序列中的某个数字可以按照自身的顺...... admin2024-01-22