题解列表

筛选

八皇后,来看看吧真的很详细了

摘要:解题思路:特别注意右对角线不能写X-Y哦!n*n的棋盘大小也就是能放n个皇后数组大小要定义30以上哦参考代码:#include"bits/stdc++.h" using namespace std;……

1757: 矩阵对角求和

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std; int main(){    int n, sum=0, num=0;    int ar……

只用了for循环和冒泡排序

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define N 10int main(){    int a[N];    in……

火柴棒等式,暴力dfs

摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 全局变量声明 int n, a[10005], b[10005] =……

发工资咯 记way

摘要: #include using namespace std; int dir[] = { 100, 50, 10, 5, 2, 1 }; int main() {……