摘要: A. k-th divisor time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given two intege 阅读全文
posted @ 2017-10-05 21:54 #忘乎所以# 阅读(236) 评论(0) 推荐(0)
摘要: 求最长公共子序列,比较出两个字符串的最长的序列。用动态规划求解 1 #include 2 #define N 10005 3 #define mem(a) memset(a,0,sizeof(a)) 4 5 using namespace std; 6 int k[N][N]; 7 stack s; 8 void substring(string s1,string s2){ ... 阅读全文
posted @ 2017-10-05 21:39 #忘乎所以# 阅读(184) 评论(0) 推荐(0)