1) If you have 6 stacks of size 4, then you are best off just letting
everyone eat
2) If you have a stack of size 9, the best thing to do is to have one
special minute where you give 3 to some other hungry customer, and then
another special minute where you do the same.

On Sun, Apr 12, 2015 at 9:10 AM, utkarsh gupta <[email protected]>
wrote:

> For small B, what I did was to first divide all the maximum sized pancakes
> to half giving the extra half to empty plates.Now it will be take special
> minutes equal to the frequency of maximum sized sized pancake.Check if the
> new maximum sized pancake + the special minutes added is less than your
> initial ans, update answer if it less. Now again divide the maximum into
> two add the special minutes required and check if the new maximum  +
> special minutes is less the your previous ans . Keep doing it until you
> have divided each pancake such that every pancake is either <= 3 ,because
> for pancake = 1,2,3 answer will be same.
> Any help is appreciated.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Code Jam" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-code/327a0d00-dc6c-4062-900c-d84da294ee6b%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/CAECKw-ObXjSZBj021L5LkFo3PMBOFso8zLSy7y57VNxLb_%3DWtw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to