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
Topic | Category | Replies | Views | Activity |
---|---|---|---|---|
ADV04F - Four Chips(hard) HELP! | ProblemSet Archive | 1 | 58 | 22d |
What are allowed characters in task t9 | ProblemSet Archive | 4 | 218 | Feb 24 |
Help me please! | ProblemSet Archive | 4 | 28 | 13d |
AIBOHPHOBIA - LPS vs Direct Approach | ProblemSet Archive | 1 | 114 | Mar 31 |
ABCPATH - ABC Path | ProblemSet Archive | 1 | 94 | May 11 |