\!ltang;solve;poj 1010\!

搜索 + 减枝

use dfs function to calculate all the possible situations for stamps.