题解列表

筛选

8皇后 改(dfs)

摘要:解题思路:基本的dfs 改改最后的操作即可注意事项:对角线的表示参考代码:#include<iostream> using namespace std; const int N=9; int n……

八皇后(前三行)(总个数)

摘要:解题思路:dfs回溯 前三行要判断注意事项:对角线表示参考代码:#include<iostream> using namespace std; const int N=10010; int n,……

x皇后问题—字典序最小(dfs)

摘要:解题思路:dfs回溯即可,第一个即为字典序最小注意事项:记得终止程序参考代码:#include<iostream> using namespace std; const int N=10010; ……

牛吃牧草(六年级天天写)

摘要:解题思路:小学题目 你不能不会吧注意事项:参考代码:#include<iostream> using namespace std; int main() {     int n;     c……

电影票(无聊刷题)

摘要:解题思路:很简单 没啥好说的 写不对就自杀吧注意事项:参考代码:#include<iostream> using namespace std; int main() {     int n; ……

梯形面积(无聊刷题)

摘要:解题思路:  没啥好说的  写不对就自杀吧注意事项:   参考代码:#include<iostream> using namespace std; const float sh=15,xia=25……

堆排序(数组模拟堆)(acwing)

摘要:解题思路:    首先初始化堆(从小到大),然后每次输出堆首元素  注意事项:    更新堆时要注意比较的方式参考代码:#include<iostream> using namespace std;……