CCC 竞赛 2013S5: Factor Solitaire

对于这个问题,我们的思路仍然是。。。倒过来考虑~   In the game of Factor Solitaire, you start with the number 1, and try to change it to some given target number n by repeatedly using the following operation. In each step, if c is your current number, you split it into two positive factors ……

CCC 竞赛 2010S5: Nutrient Tree

  There is a binary tree with l leaves (1 ≤ l ≤ 50) where each leaf k has an amount of nutrients nk (1 ≤ nk ≤ 10000) that it produces. The branches (which you can think of as edges) of this binary tree limit the maximum amount of nutrients that can flow to the root of the tree. You have X gr……