結果 : dynamic programming resource allocation problem example