thank u very very......if .

Moderator: Board moderators
Code: Select all
SPOILER WAS CUTTED OFF
Code: Select all
Sorry, but I have to cut it out because it's not fair to give complete algorithm with every step description
Code: Select all
If(weight_stack[i] + weight[j] <= strength[j]) then...
Code: Select all
[2 1000]
[1 1000]
[500 901]
[10 500]
[152 199]
[3 40]
[20 30]
[1 2]