摘要:
通过进栈出栈实现循环 阅读全文
posted @ 2020-02-09 17:33
w_w_t
阅读(143)
评论(0)
推荐(0)
摘要:
```c++#include#includeusing namespace std;const int MA=1005;int stack[MA];int a[MA];int top=-1;int main(){ int n; cin>>n; for(int i=1;i<=n;i++) scanf("%d",&a[i]); int cur=1;//cur为进过栈的数字最大值+1,初始cur为1 f... 阅读全文
posted @ 2020-02-09 13:39
w_w_t
阅读(144)
评论(0)
推荐(0)

浙公网安备 33010602011771号