Hifipsysta-1734-二叉树遍历 摘要:```cpp #include #include using namespace std; const int MAXN = 27; struct node{ char dat…… 题解列表 2022年02月08日 0 点赞 0 评论 486 浏览 评分:0.0
Hifipsysta-1106-奖学金(C++代码)结构体排序 摘要:```cpp #include #include using namespace std; const int MAXN=1000; struct student{ int…… 题解列表 2022年02月07日 0 点赞 0 评论 402 浏览 评分:0.0
优质题解 公交汽车(C++) 摘要:- 定义变量 题目中说明有需要10个整数代表不同路程的费用,于是先声明一个数组(名为worth,长度为11,worth[0]为空,worth[1~10]表示一次性行走1~10公里所需费用) 接着定…… 题解列表 2022年02月07日 0 点赞 0 评论 1063 浏览 评分: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 评论 421 浏览 评分: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 评论 393 浏览 评分:0.0
Hifipsysta-1207-字符排列问题(C++代码)看到大家方法这么复杂,我写了个非常简单的STL实现 摘要:##### 基本思路: ① 将字符串读入数组存储 ② 采用sort函数以字典序排序 ③ 采用next_permutation输出全排列,每迭代依次采用cnt记数 ##### 注意事项: …… 题解列表 2022年02月07日 0 点赞 0 评论 368 浏览 评分:0.0
Hifipsysta-1165-明明的随机数(C++代码)基于STL的实现,我敢说这是本题最简单的代码 摘要: ```cpp #include #include using namespace std; int main(){ int n,tmp; scanf("%d", &…… 题解列表 2022年02月07日 0 点赞 0 评论 367 浏览 评分:0.0
zb-字符串插入-C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<string>int main(){ string s,t; c…… 题解列表 2022年02月07日 0 点赞 0 评论 307 浏览 评分:0.0
优质题解 Hifipsysta-1739-成绩排序(C++代码)基于STL中sort函数的结构体排序 摘要:#### 基本思路: ① 建立student结构体类型的数组stu[1001]存储学生姓名、年龄和成绩,按照题目要求长度为1000。 ② 设置排序规则,按照题目要求是先按成绩从小到大排,成绩相等则…… 题解列表 2022年02月07日 0 点赞 1 评论 955 浏览 评分:9.2
蓝桥杯基础练习VIP-矩形面积交 摘要:三种情形 1.两个矩形重合 2.两个矩形有一部分重合 3.两个矩形不重合 我们通过画出这三种情形可以发现,1,2两种将四个横纵坐标由大到小排序后比如x1…… 题解列表 2022年02月06日 0 点赞 0 评论 432 浏览 评分:9.9