摘要: 一:解题思路 二:完整代码示例 (C++版和Java版) C++代码: #include <iostream> using namespace std; int main() { int i = 0; int j = 0; int k = 0; int num = 0; while (cin >> 阅读全文
posted @ 2020-08-06 21:27 repinkply 阅读(365) 评论(0) 推荐(0)
摘要: 一:解题思路 二:完整代码示例 (C++版和Java版) C++代码: #include <iostream> #include <vector> #include <string> #include <map> using namespace std; int main() { string st 阅读全文
posted @ 2020-08-06 21:01 repinkply 阅读(355) 评论(0) 推荐(0)
摘要: 一:解题思路 二:完整代码示例 (C++版和Java版) C++代码: #include <iostream> #include <vector> #include <string> using namespace std; int main() { string str = ""; while ( 阅读全文
posted @ 2020-08-06 20:17 repinkply 阅读(387) 评论(0) 推荐(0)
摘要: 一:解题思路 二:完整代码示例 (C++版和Java版) C++代码: #include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; bool isBrother(s 阅读全文
posted @ 2020-08-06 18:12 repinkply 阅读(271) 评论(0) 推荐(0)
摘要: 一:解题思路 二:完整代码示例 (C++版和Java版) C++代码: #include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; void encryString 阅读全文
posted @ 2020-08-06 16:23 repinkply 阅读(322) 评论(0) 推荐(0)
摘要: 一:解题思路 这道题目和leetcode 151 有些类似,可以放在一起进行学习。 二:完整代码示例 (C++版和Java版) C++代码在牛客网上面 AC 90%,有点奇怪。 C++代码: #include <iostream> #include <string> #include <vector 阅读全文
posted @ 2020-08-06 11:18 repinkply 阅读(239) 评论(0) 推荐(0)