Array Partition
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Given an integer array of integers.
Group these integers into pairs such that the sum of for all is maximized.
Input
The first line contains one number . The second line contains integers, each no more than by absolute value.
Output
Print the maximum possible value of the sum.
Examples
Input #1
Answer #1
Submissions 316
Acceptance rate 63%