八皇后(前三行)(总个数) 摘要:解题思路:dfs回溯 前三行要判断注意事项:对角线表示参考代码:#include<iostream> using namespace std; const int N=10010; int n,…… 题解列表 2023年08月01日 0 点赞 0 评论 208 浏览 评分:9.9
x皇后问题—字典序最小(dfs) 摘要:解题思路:dfs回溯即可,第一个即为字典序最小注意事项:记得终止程序参考代码:#include<iostream> using namespace std; const int N=10010;…… 题解列表 2023年08月01日 0 点赞 0 评论 200 浏览 评分:9.9
1466: 蓝桥杯基础练习VIP-字符串对比(C++简单解) 摘要: ```cpp #include #include #include using namespace std; int checkRelation(const string& s…… 题解列表 2023年07月31日 0 点赞 0 评论 210 浏览 评分:9.9
牛吃牧草(六年级天天写) 摘要:解题思路:小学题目 你不能不会吧注意事项:参考代码:#include<iostream> using namespace std; int main() { int n; c…… 题解列表 2023年07月31日 1 点赞 0 评论 1136 浏览 评分:4.7
电影票(无聊刷题) 摘要:解题思路:很简单 没啥好说的 写不对就自杀吧注意事项:参考代码:#include<iostream> using namespace std; int main() { int n;…… 题解列表 2023年07月31日 0 点赞 0 评论 436 浏览 评分:9.9
1232: 查找最大元素(C++) 摘要:AC代码: ```cpp #include #include #include using namespace std; int main() { string input…… 题解列表 2023年07月31日 0 点赞 0 评论 306 浏览 评分:9.9
梯形面积(无聊刷题) 摘要:解题思路: 没啥好说的 写不对就自杀吧注意事项: 参考代码:#include<iostream> using namespace std; const float sh=15,xia=25…… 题解列表 2023年07月31日 0 点赞 1 评论 452 浏览 评分:6.0
堆栈的使用(数组模拟数组)(acwing) 摘要:解题思路: 根据题目所述即可注意事项: 简单暴力即可参考代码:#include<iostream> using namespace std; const int N=10010; int p…… 题解列表 2023年07月31日 0 点赞 0 评论 253 浏览 评分:9.9
堆排序(数组模拟堆)(acwing) 摘要:解题思路: 首先初始化堆(从小到大),然后每次输出堆首元素 注意事项: 更新堆时要注意比较的方式参考代码:#include<iostream> using namespace std;…… 题解列表 2023年07月31日 0 点赞 0 评论 165 浏览 评分:9.9
优质题解 1238: 演讲大赛评分(C++解析) 摘要:代码解析: 定义了一个Player结构体,包含选手的姓名和分数列表。 然后,定义了一个calculateAverageScore函数,用于计算选手的平均分。函数中,首先将选手的分数列表复制到一个新…… 题解列表 2023年07月31日 0 点赞 0 评论 456 浏览 评分:9.9