Two biggest
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Array of n integers is given. Find the sum of two biggest elements in array.
Input
First line contains number n (n ≤ 100). Next line contains n integers, each of them is no more than 100 by absolute value.
Output
Print the sum of two biggest elements in array.
Examples
Input #1
Answer #1
Input #12
Answer #12
Submissions 19K
Acceptance rate 41%