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 google-code+unsubscr...@googlegroups.com. To post to this group, send email to google-code@googlegroups.com. 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.