I recognized dynamic programming can't be applied to this problem. Exhaustion works. Any good idea?
17
11
1