daydayup牛
daydayup牛
全部文章
分类
题解(97)
归档
标签
去牛客网
登录
/
注册
daydayup牛的博客
全部文章
(共15篇)
题解 | #公共子串计算#
暴力搜索法事件复杂度O(n^3)空间复杂度o(1) #include <algorithm> #include <vector> using namespace std; int main() { string str1,str2; while...
C++
字符串
2022-03-22
0
310
题解 | #名字的漂亮度#
统计频率最高的,然后从26开始一直×到没 #include <algorithm> #include <map> #include <vector> using namespace std; int main() { int n; while(...
C++
字符串
2022-03-21
0
299
题解 | #在字符串中找出连续最长的数字串#
#include <algorithm> #include <vector> using namespace std; int main() { string str; while(getline(cin,str)){ string tem...
C++
字符串
2022-03-21
0
357
题解 | #字符逆序#
#include <algorithm> using namespace std; int main() { string str; while(getline(cin,str)){ for(auto it = str.rbegin(...
C++
脑筋急转弯
字符串
2022-03-21
0
266
题解 | #自守数#
我的思路把他们都转化为字符串比较末尾长度,这个长度为想要判断的整数长度。 #include <algorithm> #include <cmath> using namespace std; int main() { int n; while(cin>...
C++
字符串
2022-03-20
0
286
首页
上一页
1
2
下一页
末页