Tính tổng dãy số

View as PDF



Problem types
Points: 100 (p) Time limit: 1.0s Memory limit: 1G Input: stdin Output: stdout

Nhập vào một dãy \(N\) số nguyên \(A_{1},A_{2},...,A_{N}\).

Hãy in ra màn hình tổng giá trị của \(N\) số nguyên.

Input

  • Dòng đầu tiên chứa số nguyên \(N\).
  • \(N\) dòng tiếp theo chứa \(N\) số nguyên \(A_{1},A_{2},...,A_{N}\).

Output

  • In ra tổng giá trị của \(N\) số nguyên.

Constraints

  • \(1 \leq n \leq 10000\)
  • \(|A_{i}| \leq 10^{9}\)

Example

Test 1

Input
7
7 4 3 6 1 2 3 
Output
26
Note

\(7 + 4 + 3 + 6 + 1 + 2 + 3 = 26\)


Comments

There are no comments at the moment.