Problem2023--noip2015 推销员

2023: noip2015 推销员

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 1  Solved: 1
[Status] [Submit] [Creator:]

Description

Sample Input Copy

5
1 2 3 4 5
1 2 3 4 5

Sample Output Copy

15
19
22
24
25

HINT

Source/Category