题解列表

筛选

1164: 数组的距离

摘要:```cpp #include #include using namespace std; struct number { int value,flag; }; int mai……

1163: 排队买票

摘要:```cpp #include using namespace std; int a(int a1,int a2) { if(a2==0) return 1; int pro=a……

c++---阶乘计算

摘要: #include using namespace std; int n; int a[100005]; int main() { ……

适合初学者看通俗易懂C++

摘要:解题思路:            1.题目要求最小步数,利用BFS搜索,一旦找到就是最小步数;        2.使用双向搜索减少时间,分别从初态和终态使用BFS,使用map关联数组命名为maps的键……

1099: 校门外的树

摘要:解题思路:运用数组去做标记注意事项:参考代码:#include<iostream> using namespace std; int a[100000]={0};  int main() {……

1098: 陶陶摘苹果

摘要:解题思路:加起来对比。注意事项:无参考代码:#include<bits/stdc++.h> using namespace std; int main() {     long long a,……