编辑距离(双序列动态规划 + 滚动数组优化) 摘要:```cpp #include #include #include #define MAX 2001 using namespace std; string A, B; int dp[M…… 题解列表 2022年02月08日 0 点赞 0 评论 580 浏览 评分:9.9
Hifipsysta-1734-二叉树遍历 摘要:```cpp #include #include using namespace std; const int MAXN = 27; struct node{ char dat…… 题解列表 2022年02月08日 0 点赞 0 评论 382 浏览 评分:0.0
Hifipsysta-1106-奖学金(C++代码)结构体排序 摘要:```cpp #include #include using namespace std; const int MAXN=1000; struct student{ int…… 题解列表 2022年02月07日 0 点赞 0 评论 318 浏览 评分:0.0
优质题解 公交汽车(C++) 摘要:- 定义变量 题目中说明有需要10个整数代表不同路程的费用,于是先声明一个数组(名为worth,长度为11,worth[0]为空,worth[1~10]表示一次性行走1~10公里所需费用) 接着定…… 题解列表 2022年02月07日 0 点赞 0 评论 963 浏览 评分:9.6
Hifipsysta-1096-Minesweeper(C++代码)空间搜索法 摘要:```cpp #include using namespace std; const int MAXN=100; struct node{ int x; int y…… 题解列表 2022年02月07日 0 点赞 0 评论 315 浏览 评分:0.0
Hifipsysta-1976-蓝桥杯算法提高VIP-删除重复元素(C++代码)频数统计法,扫描两遍就出来了 摘要:```cpp #include #include using namespace std; const int MAXN=128; int table[MAXN]; int mai…… 题解列表 2022年02月07日 0 点赞 0 评论 322 浏览 评分:0.0
Hifipsysta-1207-字符排列问题(C++代码)看到大家方法这么复杂,我写了个非常简单的STL实现 摘要:##### 基本思路: ① 将字符串读入数组存储 ② 采用sort函数以字典序排序 ③ 采用next_permutation输出全排列,每迭代依次采用cnt记数 ##### 注意事项: …… 题解列表 2022年02月07日 0 点赞 0 评论 279 浏览 评分:0.0
Hifipsysta-1165-明明的随机数(C++代码)基于STL的实现,我敢说这是本题最简单的代码 摘要: ```cpp #include #include using namespace std; int main(){ int n,tmp; scanf("%d", &…… 题解列表 2022年02月07日 0 点赞 0 评论 293 浏览 评分:0.0
zb-字符串插入-C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<string>int main(){ string s,t; c…… 题解列表 2022年02月07日 0 点赞 0 评论 233 浏览 评分:0.0
优质题解 Hifipsysta-1739-成绩排序(C++代码)基于STL中sort函数的结构体排序 摘要:#### 基本思路: ① 建立student结构体类型的数组stu[1001]存储学生姓名、年龄和成绩,按照题目要求长度为1000。 ② 设置排序规则,按照题目要求是先按成绩从小到大排,成绩相等则…… 题解列表 2022年02月07日 0 点赞 1 评论 892 浏览 评分:9.2