3062: 计算字符串距离 摘要:解题思路:f[i][j]表示a字符串前i字符与b字符串前j字符最短距离注意事项:参考代码:#include<iostream> #include<cstring> using namespace …… 题解列表 2024年05月05日 0 点赞 0 评论 335 浏览 评分:9.9
3061: 公共子序列 摘要:解题思路:f[i][j] 表示a字符串前i字符与b字符串前j字符的最大公共子序列长度注意事项:参考代码:#include<iostream> #include<cstring> using nam…… 题解列表 2024年05月05日 0 点赞 0 评论 294 浏览 评分:9.9
信息学奥赛一本通T1280-滑雪 摘要:解题思路:从任何一点出发寻找最长路径注意事项:参考代码:#include<iostream> using namespace std; const int N = 1e2 + 10; int g…… 题解列表 2024年05月05日 0 点赞 0 评论 318 浏览 评分:9.9
C++ STL unordered_set 摘要:解题思路:利用STL unordered_set保存集合A和C, list保存集合B, 判断集合B中也在A中但不在C中的元素。注意事项:题意要求按B输入顺序输出,所以需要用有序列表保存B中的元素。参考…… 题解列表 2024年05月04日 0 点赞 0 评论 372 浏览 评分:0.0
信息学奥赛一本通T1279-橱窗布置 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> using namespace std; const int N = 1e2 + 10; …… 题解列表 2024年05月04日 0 点赞 0 评论 381 浏览 评分:9.9
STL stack模板类 摘要:解题思路:使用STL模板类stack处理元素入栈出栈注意事项:参考代码:#include<iostream> #include<string> #include<stack> #include<…… 题解列表 2024年05月04日 0 点赞 0 评论 354 浏览 评分:0.0
信息学奥赛一本通T1278- 复制书稿 摘要:解题思路:分治, r为分治求出的最短时间,从后向前遍历书稿,将书稿复制边界存入res数组中注意事项:参考代码:#include#includeusing namespace std; const i…… 题解列表 2024年05月04日 0 点赞 0 评论 353 浏览 评分:9.9
信息学奥赛一本通T1277-方格取数(测试数据有误) 摘要:解题思路:dp 四维,二维均可,测试数据有误, 浪费很多时间注意事项:样例数据有误参考代码:#include<iostream> #include<cstring> #include<utilit…… 题解列表 2024年05月04日 0 点赞 0 评论 333 浏览 评分:9.9
鬼知道我写了多少遍 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e3;ll a…… 题解列表 2024年05月04日 0 点赞 0 评论 334 浏览 评分: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 评论 280 浏览 评分:0.0