题解列表

筛选

数组模拟栈的使用

摘要:解题思路:数组模拟栈了解栈是一个什么结构:先进后出的线性结构表了解栈顶的初始位置:=-1当栈满时的条件是:栈顶等于数组容量减一当栈空的条件是:栈顶位置为-1处理好当空栈时的异常栈和队列区别:一个是先进……

数组逆序重放

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

感谢支持,谢谢你们的支持

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

2840: 向量点积计算

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

C语言训练-斐波纳契数列

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

向量点积计算

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

母牛的故事(递归)

摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int arr[60]; int niu(int x){ if(arr[x]!……