讲义气的勇士愿offer多多
讲义气的勇士愿offer多多
全部文章
分类
归档
标签
去牛客网
登录
/
注册
讲义气的勇士愿offer多多的博客
TA的专栏
4篇文章
0人订阅
字符串操作
4篇文章
92人学习
全部文章
(共110篇)
题解 | #挑7#
// 暴力解法:直接判断从1到n的所有数字。判断其与7是否有关 #include <iostream> #include <string> using namespace std; int main() { int n; cin >> n; ...
2024-09-29
0
90
题解 | #杨辉三角的变形#
// 多列出几行,观察杨辉三角的规律 #include <array> #include <iostream> using namespace std; int main() { int a; int ans = -1; cin >>...
2024-09-29
0
79
题解 | #名字的漂亮度#
#include <algorithm> #include <iostream> #include <vector> using namespace std; // 1. 先把每个字符出现的次数放在vector数组中 // 2. 对vector数组进行排序 // ...
2024-09-27
0
86
题解 | #Sudoku#
#include <array> #include<iostream> #include <vector> using namespace std; vector<vector<int>> matrix(9, vector<int&...
2024-09-27
0
61
题解 | #截取字符串#
#include <iostream> using namespace std; int main() { string str; cin >> str; int n; cin >> n; cout << s...
2024-09-27
0
67
题解 | #迷宫问题#
#include <deque> #include <iostream> #include <vector> using namespace std; vector<pair<int, int> > res; void dfs(vect...
2024-09-27
0
61
题解 | #称砝码#
// 思路 利用set集合存放可以称重的重量,最后统计set集合的大小。 #include<iostream> #include <set> #include <vector> using namespace std; int main() { int...
2024-09-27
0
84
题解 | #判断两个IP是否属于同一子网#
#include <iostream> #include <vector> using namespace std; vector<size_t> ipToVector(string ip){ vector<size_t> v; in...
2024-09-27
0
62
题解 | #判断两个IP是否属于同一子网#
#include <iostream> #include <vector> using namespace std; vector<string> ipToVector(string ip){ vector<string> v; in...
2024-09-27
0
54
题解 | #统计字符#
/* 思路: 1. 获取字符串 2. 遍历字符串 */ #include <iostream> using namespace std; int main() { string str; getline(cin, str); int a = 0, b = 0...
2024-09-27
0
49
首页
上一页
2
3
4
5
6
7
8
9
10
11
下一页
末页