Intending to impress your companions and win over a new love interest, you decide to win a stuffed animal in the game. The vendor in charge of the game agrees to allow you to use your computer to help you win the game, but agrees only on the conditions that for each set of intervals, all you can tell the computer is how many intervals will be in this set, and what the intervals are.
All intervals are in integers.
Assume the maximum number of intervals is 100, and the range of each interval is between 1 and 20.