1635: 5166. 对称山脉
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:7
Solved:5
Description

Input

Output

Sample Input Copy
7
3 1 4 1 5 9 2
Sample Output Copy
0 2 0 5 2 10 10
HINT

