摘要:
#include<bits/stdc++.h> using namespace std; const int N=100010; char stk[N]; int top; int main() { int x;cin>>x; char k;scanf("%c",&k); for(int i=0;i 阅读全文
posted @ 2022-12-09 18:59
Szang
阅读(22)
评论(0)
推荐(0)
摘要:
#include<bits/stdc++.h> using namespace std; const int N=100010; char stk[N]; int top; int main() { int x;cin>>x; cin>>stk[1],top++; for(int i=0;i<x-1 阅读全文
posted @ 2022-12-09 18:18
Szang
阅读(17)
评论(0)
推荐(0)
摘要:
#include<bits/stdc++.h> using namespace std; const int N=100010; int stk[N],top=1; int a[N]; int main() { stk[0]=0,stk[1]=1; printf("push 1\n"); int m 阅读全文
posted @ 2022-12-09 17:12
Szang
阅读(23)
评论(0)
推荐(0)
摘要:
#include<bits/stdc++.h> using namespace std; int main () { int m;cin>>m; int a[m+10]; int top=0; while(m--) { string op; cin>>op; if(op=="push") { int 阅读全文
posted @ 2022-12-09 15:57
Szang
阅读(24)
评论(0)
推荐(0)