牛客210938800号
牛客210938800号
全部文章
分类
题解(5)
归档
标签
去牛客网
登录
/
注册
牛客210938800号的博客
全部文章
(共5篇)
题解 | #查找兄弟单词#
#include <iostream> #include <vector> #include <set> #include <algorithm> using namespace std; bool isBrother(string a, stri...
2021-08-03
0
286
题解 | #在字符串中找出连续最长的数字串#
#include <iostream> #include <vector> using namespace std; int main() { string str; while (cin >> str) { int n = s...
2021-08-02
0
332
题解 | #查找两个字符串a,b中的最长公共子串#
动态规划法 #include <iostream> #include <vector> #include <cmath> using namespace std; int main() { string str1, str2; while (c...
2021-08-02
0
382
题解 | #高精度整数加法#
从最后一位开始正常的累加,当前位为sum / 10,进位为sum % 10,每一位存的结果存在stack中,最后输出stack即可 #include <iostream> #include <stack> using namespace std; int main() {...
2021-08-02
1
320
题解 | #合并表记录#
List存值,Map查找,Set排序: #include <iostream> #include <set> #include <list> #include <unordered_map> using namespace std; int mai...
2021-08-02
0
368