Problem3558--【Div2】24年6月GESP六级P2-二叉树

3558: 【Div2】24年6月GESP六级P2-二叉树

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description





Sample Input Copy

6
3 1 1 3 4
100101
3
1
3
2

Sample Output Copy

010000

Source/Category