0% found this document useful (0 votes)
47 views

ArraySum PDF

An array of integers with a size between 1 and 10^2 is given as input. The program must output the sum of all the elements in the array, which may be large numbers up to 10^10.

Uploaded by

akashkumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views

ArraySum PDF

An array of integers with a size between 1 and 10^2 is given as input. The program must output the sum of all the elements in the array, which may be large numbers up to 10^10.

Uploaded by

akashkumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Array Sum

You are given an array of integers of size . You need to print the sum of the elements in the array,
keeping in mind that some of those integers may be quite large.
Input Format
The first line of the input consists of an integer . The next line contains space-separated integers
contained in the array.
Output Format
Print a single value equal to the sum of the elements in the array.
Constraints
1<=N<=10 0<=a[i]<=10^10

SAMPLE INPUT SAMPLE OUTPUT


5 5000000015
1000000001 1000000002 1000000003
1000000004 1000000005

You might also like