大时代1105
大时代1105
全部文章
分类
题解(12)
归档
标签
去牛客网
登录
/
注册
大时代1105的博客
全部文章
(共28篇)
题解 | #加减#
思路 贪心 + 前缀和优化 + 滑动窗口优化 过程 代码 #include <iostream> #include <algorithm> using namespace std; typedef long long LL; const int N = 1e5...
2025-04-19
0
8
题解 | #取金币#
思路 区间dp 过程 代码 class Solution { int a[110], f[110][110]; public: int getCoins(vector<int>& coins) { int n = coins.s...
2025-04-17
0
9
题解 | #循环汉诺塔#
思路 dp 过程 代码 #include <iostream> using namespace std; const int MOD = 1000000007; int n; int main() { cin >> n; long long x ...
2025-04-06
0
15
题解 | #ruby和薯条#
思路 排序 + 二分/双指针 过程 代码 c++ c++ #include <iostream> #include <algorithm> using namespace std; using LL = long long; const int N =...
2025-04-06
0
21
题解 | #小红的子串#
思路 滑动窗口 + 前缀和 过程 代码 #include <iostream> #include <string> #include <cstring> using namespace std; const int N = 2e5 + 10; int ...
2025-04-05
0
19
题解 | #宵暗的妖怪#
思路 线性dp 过程 代码 #include <iostream> using namespace std; typedef long long LL; const int N = 1e5 + 10; int n, a[N]; LL f[N]; int main() { ...
2025-04-04
0
21
题解 | #小红取数#
思路 01背包 + 同余定理 过程 代码 #include <iostream> #include <cstring> using namespace std; typedef long long LL; const int N = 1e3 + 10, K = 1...
2025-03-31
0
17
题解 | #abb#
思路 dp 过程 代码 #include <iostream> #include <unordered_map> using namespace std; const int N = 1e5 + 10; typedef long long LL; int n; ...
2025-03-30
0
22
题解 | #合唱团#
思路 线性dp 过程 代码 #include <iostream> using namespace std; typedef long long LL; const int N = 60; const int INF = 0x3f3f3f3f3f3f3f3f; int a...
2025-03-25
0
22
题解 | #活动安排#
思路 排序 + 贪心 过程 代码 #include <iostream> #include <algorithm> using namespace std; typedef pair<int, int> PII; const int N = 2e5 +...
2025-03-24
0
24
首页
上一页
1
2
3
下一页
末页