题解 2878: 计算矩阵边缘元素之和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e3;ll a[…… 题解列表 2024年05月04日 0 点赞 0 评论 136 浏览 评分:0.0
题解 1024: [编程入门]矩阵对角线求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e3;ll a[…… 题解列表 2024年05月04日 0 点赞 0 评论 198 浏览 评分:0.0
1024: [编程入门]矩阵对角线求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e3;ll a…… 题解列表 2024年05月04日 0 点赞 0 评论 192 浏览 评分:0.0
1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>typedef long long ll;const int N=1e7;using namespace std;int …… 题解列表 2024年05月04日 1 点赞 0 评论 234 浏览 评分:10.0
信息学奥赛一本通T1276 -编辑距离 摘要:解题思路:f[i][j]表示i长度的字符串变化到j长度字符串的最短距离注意事项:参考代码:#include<iostream> using namespace std; const int N =…… 题解列表 2024年05月03日 0 点赞 0 评论 235 浏览 评分:9.9
1314: 乘积最大 摘要:解题思路:f[i][j]表示到索引i数字字符插入j个乘号,所能得到最大的乘积。 初始化f[i][0] 为到i索引字符结束的整数(插入了0个乘号);r遍历字符从1到i个字符每种情况, 状态转移方程:f[…… 题解列表 2024年05月03日 0 点赞 0 评论 262 浏览 评分:9.9
题解 1019: [编程入门]自由下落的距离计算 有个小坑 摘要:解题思路:注意事项:第一次下落距离为 m,第二次距离为 m + 高度 * 4米;参考代码:#include<iostream>using namespace std;int main(){ i…… 题解列表 2024年05月03日 0 点赞 0 评论 235 浏览 评分:0.0
优先队列之小根堆,,,,,,, 摘要:解题思路:每次选最小的两个元素,也就是小根堆的顶部进行合并,合并之后加入队列,直到队列只剩一个元素注意事项:什么注意的参考代码:#include<bits/stdc++.h>using namespa…… 题解列表 2024年05月02日 0 点赞 0 评论 236 浏览 评分:0.0
超级简单的递归 摘要:解题思路:用递归的思想,求第n个就要先知道n-1的排列顺序,知道n-1就要先知道n-2.....知道第2个就要知道第1个.而特点就是夹心饼干,前半部分和后半部分一样。所以我用一个change函数实现递…… 题解列表 2024年05月02日 0 点赞 0 评论 311 浏览 评分:0.0
dfs自用--自用 摘要: #include using namespace std; const int MAXN = 1005; int city[MAXN]; int a[…… 题解列表 2024年05月02日 0 点赞 0 评论 300 浏览 评分:0.0