The following program is my ACcepted code for UVA-674 .
It's a for everybody to learn and discuss.
If there is any mistake or comment, please let me know. :D
此乃UVA 674 的AC code!
我之後應該會寫一小篇來解釋這種題目的 DP 思路
但可能要等一小段時間了,如果很想知道的話可以留言,我會趕快寫
I think I will write a small article to explain this problem's DP thought,
but that will in the future some time(?).
If you want to know about that, please leave a commend and I will work on it soon.
此題目可以使用int,因為他的n值比較小。
This problem can be solved when you use int because its n may be smaller.
It's a for everybody to learn and discuss.
If there is any mistake or comment, please let me know. :D
此乃UVA 674 的AC code!
歡迎一同討論學習,如有錯誤與任何建議請留言 : )
但可能要等一小段時間了,如果很想知道的話可以留言,我會趕快寫
I think I will write a small article to explain this problem's DP thought,
but that will in the future some time(?).
If you want to know about that, please leave a commend and I will work on it soon.
此題目可以使用int,因為他的n值比較小。
This problem can be solved when you use int because its n may be smaller.
