旺仔烧麦
旺仔烧麦
全部文章
分类
归档
标签
去牛客网
登录
/
注册
旺仔烧麦的博客
TA的专栏
46篇文章
0人订阅
C/C++题解
46篇文章
60人学习
全部文章
(共69篇)
手撕题解02 | 字符串哈希
#include <iostream> #include <unordered_set> #include <string> using namespace std; int main() { //关闭C++流和c流的同步,解绑cin和cout ...
2026-02-28
0
46
手撕题解01 | 【模板】排序
#include <iostream> #include<vector> #include<algorithm> using namespace std; int main() { int n; while(scanf("%d"...
2026-02-28
0
28
题解 | 十进制整数转十六进制字符串
#include <iostream> #include <string> using namespace std; string toHexString(int n); int main() { int n; cin >> n; ...
2026-01-11
0
48
题解 | 实现简单计算器功能
#include <iostream> using namespace std; class calculation{ private: int a; int b; public: virtual int calc(int...
2026-01-11
0
48
题解 | 容器存放类对象指针-私域访问getter函数的用法 | 个人所得税计算程序
#include <iomanip> #include <ios> #include <iostream> #include<string> // write your code here...... #include<vector> u...
2026-01-11
0
52
题解 | 统计字符串中各类型字符的个数
#include <iostream> #include <cstring> using namespace std; int main() { int letter = 0; int digit = 0; int space = 0; i...
2026-01-11
0
41
题解 | 找到数组里的第k大数(C++)
#include<bits/stdc++.h> using namespace std; int main(){ int n,k,x; vector<int>a; // write your code here...... cin>>n>>k;...
2026-01-11
0
58
题解 | 使用算法
#include <iostream> #include <vector> // write your code here...... #include<algorithm> using namespace std; int main() { int...
2026-01-11
0
45
题解 | 判断元素是否出现
#include<bits/stdc++.h> using namespace std; int main(){ //write your code here...... int n, m, x, a; map<int, int>map; cin>>n&g...
2026-01-11
0
40
题解 | 查找 |set.upper_bound
#include<bits/stdc++.h> using namespace std; int main(){ set<int>s; //write your code here...... int n, m, a, x; cin>>n>>m...
2026-01-11
0
48
首页
上一页
1
2
3
4
5
6
7
下一页
末页