作業4:砍木頭問題(Dynamic Programming Problem)

*程式裡頭要有詳盡的註解
題目請參考 http://uva.onlinejudge.org/external/100/10003.html