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 1279. Warehouse

Please help me! I don't understand where is an error in my prog
Posted by Pasha 19 May 2004 22:04
If there is any secret in this problem? I have just reading all data in one-dimensional massive and fill it while there is any extra box.
 10 boxes must be lay on this set:
 1 1 1 1 2 2 2 3 3 3 3 3 and 10=>
 2 2 2 2 2 2 2 3 3 3 3 3 and 6=>
 3 3 3 3 3 3 2 3 3 3 3 3 and 0
 Do I must write "2" or "3" ?
 Can somebody explain my mistake or give me a hint, please?
Re: Please help me! I don't understand where is an error in my prog
Posted by Khlyzov Andrew 21 Jul 2004 17:45
You must write the minimum height. In your case this is 2