Problem A
Sumsets
Given
Input
The input starts with an integer
Output
Output a single line containing the maximum
Sample Input 1 | Sample Output 1 |
---|---|
5 2 3 5 7 12 |
12 |
Sample Input 2 | Sample Output 2 |
---|---|
5 2 16 64 256 1024 |
no solution |