IntermediateRating 1100
Pair Up for Big Minimums
Split the 2n numbers into n pairs. Make the sum of the smaller number of each pair as large as possible and print it.
Input
n, then 2n integers.
Output
One integer.
Sample 1
Input
2 1 4 3 2
Output
4
Sample 2
Input
3 6 2 6 5 1 2
Output
9
Output appears here