[UVA][dp&greedy] 12172 - Matchsticks
Matchsticks are ideal tools to represent numbers. A common way to
represent the ten decimal digits with matchsticks is the following:
This is identical to how numbers are displayed on an ordinary alarm
clock. With a given number of matchsticks you can gen...