How to restore the list of items you need to take? This task is DP.

Closed due to the fact that the essence of the issue is not clear to the participants of Kromster , Visman , Aslan Kussein , Regent , LEQADA October 19, '15 at 10:15 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

1 answer 1

writeln('предметы, которые необходимо взять'); 

What's the question?

  • This task is Dynamic Programming. - duha6 6:36