题解列表
1232: 查找最大元素(C++)
摘要:AC代码:
```cpp
#include
#include
#include
using namespace std;
int main() {
string input……
1466: 蓝桥杯基础练习VIP-字符串对比(C++简单解)
摘要:
```cpp
#include
#include
#include
using namespace std;
int checkRelation(const string& s……
自定义函数之整数处理(新手小白也能学会的编程)
摘要:解题思路:题目要求使用三个函数,1、输入可以直接用main函数。2、将其中最小的数与第一个数对换,把最大的数与最后一个数对换用自己的函数int F(int a[10])。3、用PR函数输出要求的结果。……
最大公约数与最小公倍数(C语言)
摘要:解题思路: 利用定义法求解。注意事项: 不要使用中文输入法编写代码。参考代码:#include<stdio.h>int main(){ int m,n,i,j; int max = 0……
题解 1028: [编程入门]自定义函数求一元二次方程
摘要:解题思路:三个函数,g1 g2 g3主函数进行判断注意事项:1,变量类型 double,输出三位小数2,#include<math.h>3,g3中的输出表示参考代码:#include<stdio.h>……
x皇后问题—字典序最小(dfs)
摘要:解题思路:dfs回溯即可,第一个即为字典序最小注意事项:记得终止程序参考代码:#include<iostream>
using namespace std;
const int N=10010;
……
八皇后(前三行)(总个数)
摘要:解题思路:dfs回溯 前三行要判断注意事项:对角线表示参考代码:#include<iostream>
using namespace std;
const int N=10010;
int n,……
8皇后 改(dfs)
摘要:解题思路:基本的dfs 改改最后的操作即可注意事项:对角线的表示参考代码:#include<iostream>
using namespace std;
const int N=9;
int n……