讲义气的勇士愿offer多多
讲义气的勇士愿offer多多
全部文章
分类
归档
标签
去牛客网
登录
/
注册
讲义气的勇士愿offer多多的博客
TA的专栏
4篇文章
0人订阅
字符串操作
4篇文章
77人学习
全部文章
(共110篇)
题解 | #记负均正II#
#include <iomanip> #include <iostream> #include <vector> using namespace std; int main() { int n; vector<float> v; ...
2024-10-05
0
62
题解 | #字符统计#
// 1. 先用map<char, int> 统计每个字符出现的次数 // 2. 创建一个 vector<pair<char, int>> 型数组,并把map表中的数据放到 vector中 // 3. 使用stable_sort 对 vector 的数据进行排序,...
2024-10-05
0
56
题解 | #字符统计#
// 1. 先用map<char, int> 统计每个字符出现的次数 // 2. 创建一个 vector<pair<char, int>> 型数组,并把map表中的数据放到 vector中 // 3. 使用stable_sort 对 vector 的数据进行排序,...
2024-10-05
0
69
题解 | #输入整型数组和排序标识,对其元素进行排序#
// 自定义一个降序排序规则 #include <algorithm> #include <iostream> #include <vector> using namespace std; bool myCompare(int a, int b){ re...
2024-10-05
0
78
题解 | #等差数列#
#include <iostream> using namespace std; int main() { int n; cin >> n; int sum = 0; int last = 0; last = 2 + (n-1)*3;...
2024-10-04
0
58
题解 | #记票统计#
#include <iostream> #include <map> #include <unordered_map> #include <vector> using namespace std; int main() { int n; ...
2024-10-04
0
86
题解 | #记票统计#
#include <iostream> #include <map> #include <vector> using namespace std; int main() { int n; cin >> n; string st...
2024-10-04
0
70
题解 | #在字符串中找出连续最长的数字串#
// 遍历字符串,记录最长的数字串,同时保存在vector数组中 #include <cctype> #include <iostream> #include <vector> using namespace std; int main() { stri...
2024-10-04
0
105
题解 | #合法IP#
// 这题完全是面向测试用例开发 #include <cctype> #include <iostream> using namespace std; int main() { string str1,str2,str3,str4,str; while (c...
2024-10-04
0
82
题解 | #密码强度等级#
#include <cctype> #include <iostream> #include <stdexcept> #include <string> using namespace std; int lengthPoint(string str)...
2024-10-04
0
72
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页