Consider the following scenario: Minute 1:
Split 6 into 3, 3 Minute 2: Split 9 into 3, 6 Minite 3: Split 6 into 3, 3 At minute 4 you would have 3,3,3,3,2,1 Minute 4: All can eat Now -> 2,2,2,2,1 Minute 5: All can eat Now -> 1,1,1,1 Minute 6: All can eat and the program should return 6 Thanks, Hussein On Apr 13, 2015 12:32 AM, "romax" <[email protected]> wrote: > > Hello, > > I have compared the output of some correct entries to Problem B to the > output of my algorithm. Thy differ in the solution to this pankake diners' > setup: > > 6 2 9 1 > > My solution would be > > 6 2 9 1 > 1. 6 2 541 > 2. 5 1 430 > 3. 4 0 320 > 4. 3 0 210 > 5. 2 0 100 > 6. 1 0 000 > 7. 0 0 000 > > -> 7 minutes. > > However, the correct answer is six minutes. Why? > > -- > 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/559feff5-35a2-4668-9293-9747949b85ac%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/CAFbN-vKUFAhkxwG_emh3%3DboTFj2x5DHonwfM8mgGpPqUTfNfnQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
