Home => ProblemSet => 4.1-35:[HDU5536]Chip Factory
Problem2161--4.1-35:[HDU5536]Chip Factory

2161: 4.1-35:[HDU5536]Chip Factory

Time Limit: 2 Sec  Memory Limit: 512 MB  Submit: 0  Solved: 1
[ Submit ] [ Status ] [ Creator: ][ 参考程序 ]

Description

给定一个长度为 n 的数列 s1,s2,...,sn
求:

的值。

Input

第一行:n;
第二行:n 个非负整数 :s1,s2,...,sn。

Output

一个整数表示答案。

Sample Input Copy

3
1 2 3

Sample Output Copy

6

HINT

样例二:
输入:
3
100 200 300
输出:
400




对于 15% 的数据: n=100
对于 85% 的数据: n=103
对于 100%的数据:n<=2000
si∈[0,109]

Source/Category