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

Hint
Posted by Sota 16 Sep 2007 13:43
Let M be maximum of height.
In case of h<=M and you think separately with in case of h>M. (h=answer)
Case of h<=M, it tries putting.
In case of h>M, remainder is distributed equally after putting.

Edited by author 16.09.2007 13:47