摘要: 基本思想: 使用迭代会很麻烦,还不如递归进行字符串拼接; 关键点: 无; #include<iostream> #include<vector> #include<string> #include<algorithm> using namespace std; const int maxn = 15 阅读全文
posted @ 2020-03-14 17:58 暮云林凌 阅读(168) 评论(0) 推荐(0)
摘要: 基本思想: 无; 关键点: 无; #include<iostream> #include<vector> #include<string> using namespace std; bool vis[26]; void charge(string s,int cnt) { if (cnt == 0) 阅读全文
posted @ 2020-03-14 02:10 暮云林凌 阅读(151) 评论(0) 推荐(0)
摘要: 基本思想: 无; 关键点: 无; #include<iostream> #include<vector> using namespace std; int main() { int n; while (cin >> n) { vector<int>vec; vec.push_back(1); vec 阅读全文
posted @ 2020-03-14 01:50 暮云林凌 阅读(207) 评论(0) 推荐(0)
摘要: 基本思想: 无; 关键点: 无; #include<iostream> #include<algorithm> #include<string> #include<stdio.h> #include<vector> using namespace std; bool flag; struct nod 阅读全文
posted @ 2020-03-14 01:29 暮云林凌 阅读(130) 评论(0) 推荐(0)
摘要: 基本思想: 自己想复杂了,把要给人选多门课给包含进去了; 关键点: 无; #include<iostream> #include<algorithm> #include<string> #include<vector> using namespace std; const int maxn = 21 阅读全文
posted @ 2020-03-14 01:20 暮云林凌 阅读(182) 评论(0) 推荐(0)
摘要: 基本思想: 其实用二叉树更简单一点,但是个人认为题目有可能不太严谨,会出现多棵树情况,用二叉树一样的还是要判断节点是否在一棵树上,没啥必要; 关键点: 无; #include<iostream> #include<string> #include<vector> #include<algorithm 阅读全文
posted @ 2020-03-14 00:53 暮云林凌 阅读(129) 评论(0) 推荐(0)
摘要: 基本思想: 无; 关键点: 无; #include<iostream> #include<string> #include<vector> #include<algorithm> #include<set> using namespace std; const int maxn = 1000000; 阅读全文
posted @ 2020-03-14 00:03 暮云林凌 阅读(135) 评论(0) 推荐(0)