Problem H: 树遍历

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:179 Solved:68

Description


求出下图的前、中、后序遍历序列。

Input

Output

#include<bits/stdc++.h>
using namespace std;
int main() {

      cout << "前序遍历结果" << endl; 
      cout << "中序遍历结果" << endl; 
      cout << "后序遍历结果" << endl; 
      return 0;
}

Sample Input Copy


Sample Output Copy