09 2019 档案
摘要:最长公共子序列 Description Input 第一行:序列A的长度 第二行:给出序列A 第三行:序列B的长度 第四行:给出序列B 长度 using namespace std; int f[1001][1001]; int n, m, a[1001], b[1001]; int main()
阅读全文
摘要:最长上升子序列 Description Input 第一行一个整数N(N using namespace std; define max(a,b) a b?a:b int main() { int n, i, j, dp[101], x[101], max_len; for (i = 0; i x[
阅读全文
摘要:数字三角形 Description Input 第一行一个整数N( include include using namespace std; long long f[1001][1001], a[1001][1001]; int n; int main() { scanf("%d", &n); fo
阅读全文