ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1326. Bottle Taps

could Petrov bye the same bottle taps twice?
input
4
100
100
100
100
3
17 2 1 3
25 3 2 3 4
15 2 3 4
3 1 3 4

Is the answer to this data equal to 32(17+15)?
or there is no answer?
Re: could Petrov bye the same bottle taps twice?
Posted by quark 16 Apr 2004 12:51
Yes ,I didn't understand THIS too

But what could u guys got AC without sloves this question?
Re: could Petrov bye the same bottle taps twice?
Posted by A. Mironenko 16 Apr 2004 15:19
Surely. The only restriction on shopping - needed taps should be present at the end