摘要: ICMP协议大致分为两类,一种是查询报文,一种是差错报文。其中查询报文有以下几种用途: ICMP 是IP 一部分不依赖IP传递消息。 阅读全文
posted @ 2017-05-19 18:31 babyking1 阅读(429) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std; int main() { string str; cin >> str; int len = str.size(); vector >dp(len, vector(len, 0)); //边界条件 长度为1 或者长度为2 的状态 int a... 阅读全文
posted @ 2017-05-19 14:46 babyking1 阅读(121) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include using namespace std; int main() { int n, m; string str1, str2; cin >> str1 >> str2; n = str1.size(); m = str2.size(); vector >dp = ve... 阅读全文
posted @ 2017-05-19 11:25 babyking1 阅读(111) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std; const int maxn = 100; int main() { int n; cin >> n; vector datas; while (n--) { int tem; cin >> tem; ... 阅读全文
posted @ 2017-05-19 10:44 babyking1 阅读(106) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std; const int maxn = 100; int main() { int n; cin >> n; vectordatas; int dp[maxn] = { 0 }; while (n--) { int tem; ... 阅读全文
posted @ 2017-05-19 09:51 babyking1 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 求解问题类型:重叠子问题 两种写法: 递推: 递推: 阅读全文
posted @ 2017-05-19 09:11 babyking1 阅读(175) 评论(0) 推荐(0) 编辑