河婆虚
河婆虚
全部文章
分类
noown(2)
题解(13)
归档
标签
去牛客网
登录
/
注册
河婆虚的博客
recyclebin
全部文章
(共14篇)
题解 分组背包模板题目
#include<bits/stdc++.h> using namespace std; const int N = 1010; int f[N]; int v[N][N],w[N][N]; int s[N]; int n,m; int t; int main() { cin&g...
动态规划
2022-03-10
1
461
题解 | 归并排序模板运用
s #include<bits/stdc++.h> using namespace std; const int N = 1e5+10; int k[N]; long long res=0; void merge_sort(int*nums,int left,int right) { ...
C++
归并排序
2022-01-11
0
341
题解 | #最短路#
SPFA算法裸题 #include<iostream> #include<algorithm> #include<cstring> #include<queue> using namespace std; const int N =3e5+10; in...
C++
最短路
2021-12-30
0
461
题解 | #wyh的迷宫#
BFS模板 //BFS模板 //原模板为求最短路径,该题为判断是否能走到终点 #include<iostream> #include<algorithm> #include<cstring> using namespace std; const int N = 5...
C++
广度优先搜索
2021-12-28
0
474
首页
上一页
1
2
下一页
末页