I can't understand the problem...

Don't it mean he only deliver one whisky on one day?

I don't know the test while the others programmer offer...

Who can tell me what the problem mean?

Re: I can't understand the problem...

example :

3

1 10 (order: 1)

2 15 (order: 2)

2 17 (order: 3)

the answer:

2

2 3

```````

The result don`t have (order: 1), because the last arrive day is 2, mean the man deliver twice, one day one once, the subject mean it find out max profit in no more than the last day

4

1 17

5 20

2 10

2 11

answer:

3

1 4 2

Do you understand ?

*Edited by author 30.12.2008 17:17*

Re: I can't understand the problem...

Thanks！！！

Re: I can't understand the problem...

Can I answer in the first test "3 2"?

Re: I can't understand the problem...

Nope) "1 4 2" answer gives a 17+11+15=43$ reward. And there is no other sequence of delivery that will give us $43 reward.

Re: I can't understand the problem...

"If there are several solutions, output any of them."