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

长郡丢B小分队(History,Jelly,Eye,Fish) could Petrov bye the same bottle taps twice? [2] // Problem 1326. Bottle Taps 15 Apr 2004 14:05
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?
Yes ,I didn't understand THIS too

But what could u guys got AC without sloves this question?
Surely. The only restriction on shopping - needed taps should be present at the end