题解列表

筛选

利用sort函数

摘要:解题思路:利用algorithm的sort函数对插入后的数组重新进行从小到大的排序注意事项:参考代码:#include<iostream>#include<algorithm>using namesp……

菜鸡的题解018——传纸条

摘要:双线程DP问题,f[i][j][k][l]代表a走到i,j位置,b走到k,l位置的最大值。状态转移方程:f[i][j][k][l]=max(max(max(f[i-1][j][k-1][l],f[i]……

菜鸡的题解019——入学考试

摘要:类型题,01背包问题。附一个自认为讲的很好的视频https://www.bilibili.com/video/BV1kp4y1e794参考代码:#include<iostream> #include……

模拟麻烦 找规律

摘要:解题思路:注意事项:参考代码:#include <iostream>#include <algorithm>#include <math.h>using namespace std;int a[100……

二级C语言-成绩归类

摘要:解题思路:注意事项:参考代码:#include<stdio.h>main(){ int a,num1=0,num2 = 0,num3 = 0; while (scanf("%d", &a) && a>……

迷宫问题BFS解法

摘要:```cpp 利用队列的方法做 #include using namespace std; const int N=110; char a[N][N];//该数组用来接收字符 int ……