#10. 三元素数组求和
三元素数组求和
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 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 , separated by spaces.
Output Format
Output is printed to standard output in the following format.
Output a single integer, representing the sum of .
Sample
1 2 3
6
5 11 2
18
7 0 0
7
Sample Explanation
For the first sample, the three input integers are . Their sum is .
Constraints
For all test cases: Time limit: 1 second, Memory limit: 1024KB.