Can anyone give me some special test cases? I still get WA. Thanks a lot!!!
created
last reply
- 5
replies
- 306
views
- 5
users
- 1
link
Can anyone give me some special test cases? I still get WA. Thanks a lot!!!
https://www.spoj.pl/problems/BACKPACK/1
They say :
If B,C,D are attachment of A, and I want to buy B,C. I need to buy A one times for B, C or I need to buy A two times?
Question:
Assume that the value of the main product is zero.
But it has attachments which if added, will drastically increase the value of the bundle together.
In this case should we include the main product or not ?
As in:
1
1000 5
800 0 0
400 5 1
300 5 1
400 3 0
500 2 0
Here value of the main product (1st product) is zero. Should we include the attachments or not ? As the main product's value is itself is zero. Thanks