8F76
8F76
全部文章
分类
归档
标签
去牛客网
登录
/
注册
8F76的博客
全部文章
(共38篇)
题解 | [NOIP2001]装箱问题
#include <bits/stdc++.h> using namespace std; #define IOS ios::sync_with_stdio(false), cin.tie(0); //const int N=; int main() { IOS i...
2025-04-08
0
21
题解 | 【模板】01背包
#include <bits/stdc++.h> using namespace std; const int MAXN=1010; int N, V; int v[MAXN], w[MAXN], f[MAXN], dp[MAXN]; int main() { cin&g...
2025-04-08
0
33
题解 | 【模板】完全背包
#include <bits/stdc++.h> using namespace std; const int MN=1010; int N, V; int v[MN], w[MN], f1[MN], f2[MN]; //f1/2[V]表示容量不超过/恰好等于V的最大价值 i...
2025-04-08
0
25
题解 | 矩阵乘法
#include <bits/stdc++.h> using namespace std; #define IOS ios::sync_with_stdio(false), cin.tie(0); #define rep(i, n) for (int i = 0; i < (n)...
2025-03-28
0
18
题解 | 高精度整数加法
#include <bits/stdc++.h> using namespace std; //高精比较 bool cmp(vector<int> &A,vector<int> &B) { if(A.size()!=B.size()) ...
2025-03-28
0
30
题解 | 查找两个字符串a,b中的最长公共子串
#include <iostream> #include <algorithm> using namespace std; const int N=1010; int n, m; string a, b; int f[N][N];//f[i][j]表示a串前i个字符和b...
2025-03-28
0
22
题解 | 计算日期到天数转换
#include <bits/stdc++.h> using namespace std; #define IOS ios::sync_with_stdio(false), cin.tie(0); #define rep(i, n) for (int i = 0; i < (n)...
2025-03-28
0
26
题解 | 尼科彻斯定理
#include <bits/stdc++.h> using namespace std; #define IOS ios::sync_with_stdio(false), cin.tie(0); #define rep(i, n) for (int i = 0; i < (n)...
2025-03-28
0
27
题解 | 字符个数统计
#include <iostream> #include <set> using namespace std; int main() { string s; cin>>s; set<char> si; for(auto...
2025-03-16
0
29
题解 | 进制转换
#include <iostream> #include <cstdio> using namespace std; int main() { getchar(), getchar(); string s; cin>>s; in...
2025-03-16
0
27
首页
上一页
1
2
3
4
下一页
末页