#10. 三元素数组求和

    ID: 10 Type: Default 1000ms 256MiB Tried: 0 Accepted: 0 Difficulty: (None) Uploaded By: Tags>codingbatArray-1gesp1顺序结构数学基础

三元素数组求和

Sum of Three Elements Array

Background

Congcong is currently learning programming and has encountered a very basic problem: calculating the sum of all elements in a fixed-length array. He hopes you can help him solve this problem.

Problem Description

Given an array of 33 integers, return the sum of all its elements.

Input Format

Input is given from standard input in the following format.

A single line containing three integers a,b,ca, b, c, separated by spaces.

Output Format

Output is printed to standard output in the following format.

Output a single integer, representing the sum of a,b,ca, b, c.

Sample

1 2 3
6
5 11 2
18
7 0 0
7

Sample Explanation

For the first sample, the three input integers are 1,2,31, 2, 3. Their sum is 1+2+3=61 + 2 + 3 = 6.

Constraints

For all test cases: 1000a,b,c1000-1000 \le a, b, c \le 1000 Time limit: 1 second, Memory limit: 1024KB.