栈+队列
1 #include2 #include 3 #include 4 #include 5 using namespace std; 6 int main() 7 { 8 int n; 9 char a[11],b[11];10 stack s;11 queue q;12 while(scanf("%d",&n)!=EOF)13 {14 memset(a,0,sizeof(a));15 memset(b,0,sizeof(b));16 scanf("%s",&a);17 scanf("%s",&b); 18 int i=0,j=0;19 while(!s.empty()) s.pop();20 while(!q.empty()) q.pop();21 while(i