2019年9月3日

POJ1011 (深搜+剪枝)

摘要: #include<iostream>//深搜学习(经典) #include<cstdio>//深搜可以作为面临多种选择时的不断尝试 #include<algorithm> #include<cstring> using namespace std; const int maxn = 105; int 阅读全文

posted @ 2019-09-03 22:59 chengyulala 阅读(227) 评论(0) 推荐(0) 编辑

POJ(2003)多叉树的基本操作

摘要: //多叉树的建立 #include<iostream> #include<cstdio> #include<string> #include<list> #include<map> #include<cstring> using namespace std; struct node { string name;//节点的名字 node* parent;//便于删除 list<node*> sons 阅读全文

posted @ 2019-09-03 15:30 chengyulala 阅读(213) 评论(0) 推荐(0) 编辑

导航