Hello, I'm trying to find the minimum cost of a travelling group.
N students are put in a queue in front of a lift Each seat of the lift could be used by a single student and then they pay a sum equal of the person weight, or could be used by two neighbour students from the queue, if the sum of their wieghts is no more than W. The students pay the average of their weights.
The problem is i get some obscure high number, instead of what im supposed to get,