题解列表
邻接矩阵的深搜 看不懂前面俩位大哥的算法的话 可以看我的
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;//题目:根据临界矩阵 进行深搜并输出// 0 0 0 1 0 0// ……
T1247-河中跳房子
摘要:
```c++
#include
#include
using namespace std;
const int MAXN = 1e5 + 5;
int l,n,m,dis……
自定义函数之整数处理(c++)
摘要:解题思路:输入数组void arrIn(int *arr){ for (int i = 0; i < 10; i++) { cin >> arr[i]; }}初始化最大值最小值下标为0 int ma……
2811:救援 笨办法求解
摘要:#include <iostream>
#include <cmath>
using namespace std;
int main(){
int n;
cin>>n;
double……
2809: 菲波那契数列 使用数组解决问题
摘要:解题思路:定义一个数组,并给数组的前两位赋值为1,使用for循环来计算第k位的数字大小参考代码:#include <iostream>
using namespace std;
int main(……
2808买房子,使用c++解决
摘要:#include <iostream>
using namespace std;
int main() {
int N, K;
cin >> N >> K;
do……