Problem B: 采购货物

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:85 Solved:21

Description


Input

Output

输出⼀个整数,表示⼀个最优的采购⽅案所需的总花费。

Sample Input Copy

3
10 20 30
15 25 20

Sample Output Copy

50

Source/Category