摘要: #include<cstring>#include<cstdlib>#include<cstdio>#include<cmath>#include<iostream>#include<map>#define N 510000using namespace std;struct node{ int a 阅读全文
posted @ 2019-07-16 17:02 Allen_lml 阅读(516) 评论(0) 推荐(1) 编辑
摘要: a) 样例输入 样例输出 5 3 a e x y z axy axz ayz exy exz eyz 代码: #include<cstring> #include<cstdlib> #include<cstdio> #include<cmath> #include<iostream> #includ 阅读全文
posted @ 2019-07-16 17:00 Allen_lml 阅读(88) 评论(0) 推荐(1) 编辑
摘要: 阅读全文
posted @ 2019-07-16 11:30 Allen_lml 阅读(111) 评论(0) 推荐(1) 编辑
摘要: 阅读全文
posted @ 2019-07-16 11:16 Allen_lml 阅读(97) 评论(0) 推荐(1) 编辑
摘要: 搜索 1. 深度优先搜索(dfs) a) 搜索的结构呈现树的形状 #include<cstring> #include<cstdlib> #include<cstdio> #include<cmath> #include<iostream> using namespace std; int a[20 阅读全文
posted @ 2019-07-16 10:57 Allen_lml 阅读(81) 评论(0) 推荐(1) 编辑