题目:https://vjudge.net/problem/UVA-548 #include #include #include #include using namespace std; const int manx = 10000 + 5; int in_order[manx], post_order[manx], lch[manx], rch[manx]; int n; bool read_list(int *a) { string line; if (!getline(cin, line)) return false; stringstream ss(line); n = 0