在划水的土拨鼠很有气魄
在划水的土拨鼠很有气魄
全部文章
分类
归档
标签
去牛客网
登录
/
注册
在划水的土拨鼠很有气魄的博客
全部文章
(共49篇)
题解 | #给数组加一#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vector * @return int整型vector...
2024-03-27
0
295
题解 | #反转数字#
#include <climits> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param x int整型 * @re...
2024-03-26
0
197
题解 | #【模板】拓扑排序#
//拓扑排序模板 #include <bits/stdc++.h> using namespace std; #define MAX 200001 int main() { int n, m; cin >> n >> m; vector&...
2024-03-26
0
249
题解 | #连续子数组最大和#
#include <bits/stdc++.h> using namespace std; const int N = 2e7 + 10; int main() { int n; cin >> n; vector<int>arr(n); ...
2024-03-26
0
210
题解 | #【模板】完全背包#
#include <bits/stdc++.h> using namespace std; const int N = 1e6 + 10; int main() { int n, v; cin >> n >> v; vector<in...
2024-03-26
0
186
题解 | #矩阵的最小路径和#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param matrix int整型vector<vector<>> the...
2024-03-25
0
186
题解 | #打家劫舍(二)#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vector * @return int整型 ...
2024-03-25
0
179
题解 | #【模板】01背包#
#include <bits/stdc++.h> using namespace std; const int N = 1e6+10; int main() { int n, nv; cin >> n >> nv; vector<in...
2024-03-25
0
232
题解 | #打家劫舍(一)#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vector * @return int整型 ...
2024-03-25
0
222
题解 | #包含min函数的栈#
class Solution { public: stack<int> s; stack<int> t; void push(int value) { s.push(value); if(t.empty() || t.t...
2024-03-24
0
210
首页
上一页
1
2
3
4
5
下一页
末页