#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <list>
using namespace std;
#define M 2002*2
typedef struct Tree
{
int data;
struct Tree *lson,*rson;
} Tnode,*ListTree;
int cnt;
ListTree a,b;
int n,m;
int* init(char *str,int &s)
{
int* strn=(int *)malloc(sizeof(int)*M);
int len=strlen(str);
int tmp=0;
int k=0;
str[len]=' ';
len++;
for(int i=0; i<len; i++)
{
if(str[i]......
阅读全文