有胆量的柯基在学习
有胆量的柯基在学习
全部文章
分类
归档
标签
去牛客网
登录
/
注册
有胆量的柯基在学习的博客
全部文章
(共112篇)
题解 | 跳跃游戏(二)
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; if (n <= 0) { cout << -1; ...
2025-08-11
0
24
题解 | 跳跃游戏(一)
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<int> nums(n); for (int i = 0; i ...
2025-08-11
0
32
题解 | 不相邻取数
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; long long take_prev_prev = 0, take_prev = 0; // d...
2025-08-11
0
25
题解 | 最长回文子序列
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int n = (int)s.size(); vector<vector<...
2025-08-11
0
32
题解 | 滑雪
#include <bits/stdc++.h> using namespace std; int main() { int n, m; cin >> n >> m; vector<vector<int>> a(n...
2025-08-10
0
21
题解 | 合唱队形
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<int> a(n); for (int i = 0; i <...
2025-08-10
0
22
题解 | 拦截导弹
#include <bits/stdc++.h> using namespace std; // 严格递增 LIS int LIS_strict(const vector<int>& a) { vector<int> tail; for ...
2025-08-10
0
19
题解 | 矩阵的最小路径和
#include <bits/stdc++.h> using namespace std; int main() { int n, m; cin >> n >> m; const int INF = 1e9; vector<...
2025-08-10
0
21
题解 | 最小花费爬楼梯
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<long long> cost(n); for (int i =...
2025-08-10
0
16
题解 | 装箱问题
#include <bits/stdc++.h> using namespace std; int main() { int V, n; cin >> V; cin >> n; vector<int> w(n); ...
2025-08-10
0
26
首页
上一页
3
4
5
6
7
8
9
10
11
12
下一页
末页