結果 : resource allocation problem dynamic programming