想要offer的菠萝蜜很有礼貌
想要offer的菠萝蜜很有礼貌
全部文章
分类
归档
标签
去牛客网
登录
/
注册
想要offer的菠萝蜜很有礼貌的博客
全部文章
(共38篇)
题解 | #特殊乘法#
#include<bits/stdc++.h> using namespace std; int main() { string s1, s2; cin >> s1 >> s2; int sum = 0; for (int i =...
2024-03-12
0
181
题解 | #n的阶乘#
#include<bits/stdc++.h> using namespace std; long jiecheng(int n) {//返回值需要为long,否则13之后的数会因为结果过大而溢出 if (n == 0 || n == 1) { return 1...
2024-03-12
0
197
题解 | #字符串内排序#
#include<bits/stdc++.h> using namespace std; int main() { string str; while (cin >> str) {//输入字符串 if (str.length() == 0) ...
2024-03-12
0
192
题解 | #xxx定律#
#include<bits/stdc++.h> using namespace std; int main() { int n; while (cin >> n) {//while处理多个case int count = 0;//count变...
2024-03-12
0
199
题解 | #后缀子串排序#
#include<bits/stdc++.h> using namespace std; vector<string> sorted(const string& str) { //截取字串存放到vector数组中 vector<string&g...
2024-03-12
0
186
题解 | #abc#
#include<bits/stdc++.h> using namespace std; int main() { for(int a=0;a<9;a++) { for(int b=0;b<9;b++) { for(int c=0;c<9;c++) ...
2024-03-12
0
171
题解 | #二叉树的镜像#
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {...
2024-02-23
0
168
题解 | #合并二叉树#
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {...
2024-02-23
0
201
题解 | #删除有序链表中重复的元素-I#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: ...
2024-02-21
0
169
题解 | #链表相加(二)#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ #include <cstdlib> cla...
2024-02-21
0
189
首页
上一页
1
2
3
4
下一页
末页