讲义气的勇士愿offer多多
讲义气的勇士愿offer多多
全部文章
分类
归档
标签
去牛客网
登录
/
注册
讲义气的勇士愿offer多多的博客
TA的专栏
4篇文章
0人订阅
字符串操作
4篇文章
92人学习
全部文章
(共110篇)
题解 | #最长回文子串#
#include<iostream> using namespace std; string str; int check(int i, int j, int len){ while(i >=0 && j < len && str...
2024-10-04
0
79
题解 | #统计大写字母个数#
#include <iostream> using namespace std; int main() { string str; while (getline(cin, str) ) { // 注意 while 处理多个 case int cnt = ...
2024-10-04
0
76
题解 | #统计大写字母个数#
#include <iostream> using namespace std; int main() { string str; while (getline(cin, str) ) { // 注意 while 处理多个 case int len = ...
2024-10-04
0
74
题解 | #字符串字符匹配#
#include <iostream> #include <map> using namespace std; int main() { string str1, str2; cin >> str1 >> str2; int ...
2024-10-03
0
105
题解 | #整型数组合并#
// 1. 把内容读到vector数组中 // 2. 利用stable_sort进行排序 // 3. 打印排序后的数据 #include <algorithm> #include <iostream> #include <vector> using namespa...
2024-10-03
0
79
题解 | #公共子串计算#
#include <iostream> #include <vector> using namespace std; // 套公式做的 int main() { string str1, str2; while (cin >> str1 >...
2024-10-03
0
76
题解 | #参数解析#
#include<bits/stdc++.h> using namespace std; // 总体思路:解析出参数存放在vector数组中,之后遍历数组打印 int main(){ string s; getline(cin,s); int n=s.lengt...
2024-10-03
0
64
题解 | #计算日期到天数转换#
#include <array> #include <iostream> using namespace std; int main() { int days = 0; string year, month, day; cin >> ye...
2024-10-03
0
73
题解 | #计算日期到天数转换#
#include <array> #include <iostream> using namespace std; int main() { int days = 0; string year, month, day; cin >> ye...
2024-10-03
0
88
题解 | #百钱买百鸡问题#
#include <iostream> using namespace std; int main() { int n; while (cin >> n) { // 注意 while 处理多个 case int a = 0, b = 0, c...
2024-10-03
0
86
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页