番禺小韭菜
番禺小韭菜
全部文章
分类
归档
标签
去牛客网
登录
/
注册
番禺小韭菜的博客
全部文章
(共93篇)
题解 | 放苹果
#include <iostream> using namespace std; int putApples(int M, int N) { if (M < 0) // M的值在递归时为(M-N)决定, 因此 M < 0时为0 return 0;...
2025-02-28
0
18
题解 | 高精度整数加法
#include <algorithm> #include <iostream> using namespace std; int main() { string a, b; cin >> a >> b; int n = a....
2025-02-28
0
18
题解 | 完全数计算
#include<stdio.h> int main() { int num; while (scanf("%d", &num) != EOF) { if (num < 6) printf(&quo...
2025-02-28
0
24
题解 | 不要三句号的歪
#include <iostream> using namespace std; int main() { int a; cin >> a; string str; getline(cin, str); int i = str.siz...
2025-02-28
0
24
题解 | 计算字符串的编辑距离
#include <string> #include <algorithm> #include <iostream> using namespace std; int minDistance(const string& word1, const strin...
2025-02-28
0
20
题解 | 四则运算 优化
#include<iostream> #include<stack> using namespace std; void compute(stack<int>& st1, stack<char>& st2){ //根据栈顶运算符弹出栈...
2025-02-27
0
21
题解 | 四则运算
#include <iostream> #include <stack> using namespace std; int main() { string str; getline(cin, str); stack<int> sk1;//...
2025-02-27
0
21
题解 | 从单向链表中删除指定值的节点
#include <iostream> #include <unordered_map> using namespace std; struct node { int val; node* next; node(int x) : val(x), ne...
2025-02-27
0
25
题解 | 迷宫问题
#include <iostream> #include <vector> using namespace std; void dfs(int i, int j, int n, int m, vector<vector<int>>& best...
2025-02-27
0
24
题解 | 称砝码
#include <iostream> #include <vector> #include <unordered_set> using namespace std; int main() { int n; cin >> n; ...
2025-02-27
0
29
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页