I have assumed l_1 >= l_2 >= …, so the case q < 1 doesn't exist.
Anyway, the assumption is made because the final result is not affected by the order of processing of the intervals. -- 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/59de92b8-ceef-4eee-84c4-f31b588bab11%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.