In sample case 3, J must have the baby for 0 to 1, and C must have the baby from 1439 to 1440. I think you've misread the input perhaps?
On Tue, 2 May 2017 at 09:16 Paul Smith <[email protected]> wrote: > You do this pattern every day, so if C has the baby from 0 to 719, and > hands over to J for 720-1439, J has to hand back to C to start the next > day. If you think about it, the number of exchanges must always be even, > otherwise the next day starts with a different parent. > > On Tue, 2 May 2017 at 00:00 newbie007 <[email protected]> wrote: > >> is 0 midnight? >> is 1440 midnight? >> >> why if C (0-720) and J(720-1440) is not only ONE exchange? >> >> ======== I didn't understand sample case 3: >> 2 2 >> 0 1 >> 1439 1440 >> 1438 1439 >> 1 2 >> >> time taking care of the baby: >> James..: 0-1, 720-1438, 1439-1440 >> Cameron: 1-720, 1438-1439 >> >> I counted 4 exchanges! :/ >> >> -- >> 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/29642b75-2d92-4739-93bf-3ebfad7197f3%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/CAJej63Kxk0ZCy2%3D1NeMxg5K7nRKRx1dkZCdcK9%2BaO%3D44Y%2BMrJA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
