贵志;
贵志;
全部文章
分类
归档
标签
去牛客网
登录
/
注册
Jacksama
求博而精
TA的专栏
1篇文章
0人订阅
我的求职面试
1篇文章
3968人学习
全部文章
(共22篇)
题解 | #字符串加解密#
//这道题难的是构造上 #include <iostream> #include <string> using namespace std; string encrypt(const string s){ string res=""; if(!s.empty...
2023-01-11
0
249
题解 | #提取不重复的整数#
//还算简单,就是没看清题,需要先逆序再求 #include <iostream> #include <vector> #include <unordered_map> using namespace std; int main() { string ...
2023-01-10
0
201
题解 | #进制转换#
//还有stoi这个好用的用法,记录一下 #include <iostream> #include <string> #include <vector> using namespace std; int main(){ string num_str; ...
2023-01-10
0
194
题解 | #计算某字符出现次数#
//不分大小写被挖了坑,record #include <iostream> #include <string> #include <map> #include <algorithm> #include <cctype> using nam...
2023-01-10
0
278
题解 | #最长回文子串#
//记录一下我的绞尽脑汁 #include <cmath> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param A string...
2023-01-09
0
229
题解 | #查找兄弟单词#
#include <iostream> #include <vector> #include <string> #include <algorithm> using namespace std; bool isBrother(string s1, s...
2023-01-09
0
227
题解 | #整数与IP地址间的转换#
#include <iostream> #include <cmath> #include <string> using namespace std; int main() { //ch的使用又让我长见识了 char ch; string ...
2023-01-08
0
237
题解 | #坐标移动#
#include <iostream> #include <sstream> #include <vector> #include <string> #include <cctype> using namespace std; int m...
2023-01-08
1
239
题解 | #坐标移动#
#include <iostream> #include <cctype> #include <string> #include <vector> using namespace std; bool hastwo(string s){ for...
2023-01-07
0
226
题解 | #字符串字符匹配#
#include <iostream> #include <string> #include <algorithm> using namespace std; int main() { string s1,s2; getline(cin, s1)...
2023-01-06
0
169
首页
上一页
1
2
3
下一页
末页