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 1583. Cheese

If you have WA2
Posted by Victor Barinov (TNU) 17 Jan 2008 04:33
I got WA2, when used usual rounding.
And when i rounded all my cuts to the smallest grater than one  than get AC.
Re: If you have WA2
Posted by Alexander Mangilyov (TNU) 20 Jul 2008 15:42
I used usual rounding.
But after each cut next 500g I measure not from ideal cut line, but from real cut line, taking into account accuracy of cutting machine.
Re: If you have WA2
Posted by xurshid_n 18 Jan 2012 21:56
tricky:
needVolume = 500.0;

while (needVolume < <total volume> )
{
   <find y>
   iy = round(y)
  recalc volume, from 0.. to iy position.(v).
   needVolume =  v + 500.0
}