STL stack模板类 摘要:解题思路:使用STL模板类stack处理元素入栈出栈注意事项:参考代码:#include<iostream> #include<string> #include<stack> #include<…… 题解列表 2024年05月04日 0 点赞 0 评论 275 浏览 评分:0.0
信息学奥赛一本通T1278- 复制书稿 摘要:解题思路:分治, r为分治求出的最短时间,从后向前遍历书稿,将书稿复制边界存入res数组中注意事项:参考代码:#include#includeusing namespace std; const i…… 题解列表 2024年05月04日 0 点赞 0 评论 258 浏览 评分:9.9
信息学奥赛一本通T1277-方格取数(测试数据有误) 摘要:解题思路:dp 四维,二维均可,测试数据有误, 浪费很多时间注意事项:样例数据有误参考代码:#include<iostream> #include<cstring> #include<utilit…… 题解列表 2024年05月04日 0 点赞 0 评论 241 浏览 评分:9.9
鬼知道我写了多少遍 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e3;ll a…… 题解列表 2024年05月04日 0 点赞 0 评论 249 浏览 评分:0.0
题解 2878: 计算矩阵边缘元素之和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e3;ll a[…… 题解列表 2024年05月04日 0 点赞 0 评论 213 浏览 评分: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 评论 279 浏览 评分: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 评论 273 浏览 评分:0.0
1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>typedef long long ll;const int N=1e7;using namespace std;int …… 题解列表 2024年05月04日 1 点赞 0 评论 314 浏览 评分:10.0
信息学奥赛一本通T1276 -编辑距离 摘要:解题思路:f[i][j]表示i长度的字符串变化到j长度字符串的最短距离注意事项:参考代码:#include<iostream> using namespace std; const int N =…… 题解列表 2024年05月03日 0 点赞 0 评论 291 浏览 评分:9.9
1314: 乘积最大 摘要:解题思路:f[i][j]表示到索引i数字字符插入j个乘号,所能得到最大的乘积。 初始化f[i][0] 为到i索引字符结束的整数(插入了0个乘号);r遍历字符从1到i个字符每种情况, 状态转移方程:f[…… 题解列表 2024年05月03日 0 点赞 0 评论 357 浏览 评分:9.9