题解列表

筛选

蓝桥杯【3150】一种做法~

摘要:## 3150的一种解法 **第一次写题解,不好勿喷** ### 直接上代码 ```c++ #include using namespace std; int fin……

矩阵最大值c++

摘要:```cpp #include using namespace std; int main() { int m, n; int a[101][101]; whi……

动态规划(C++)代码

摘要:#include <iostream> using namespace std; const int N = 1000010, INF = 0x3f3f3f3f; int a[N],……

二维数组线性dp(C++)

摘要:#include using namespace std; const int N = 110; int f[N][N]; int a[N][N]; int main() { int ……

C++速度功成

摘要:解题思路:数组的构建,数组附值注意事项:注意a[3][3]中的3是容量,而下面默认第一位数组下标为a[0][0],所以输出的时候别写错了,当然要是把i和j定义成1的话,那a[1][1]就是第一行第一列……

sort排序自定义

摘要:#include <bits/stdc++.h> using namespace std; const int N = 1e6 + 10; int n, m; struct node { ……