摘要:
#include "iostream"#include "string"using namespace std;int A[9]={-1,1,2,3,4,5,6,7,8};int top_s1=0,top_s2=9;bool PUSH(string s,int x){ if(top_s1+1==top_s2) return false; else{ if(s=="s1"){ top_s1++; A[top_s1]=x; } else{ top_s2--; ... 阅读全文