On Monday, April 17, 2017 at 1:18:39 PM UTC, DSL wrote: > Hi, > > I tried the problem for practice and got correct answers to all but two of > the small input test cases. Could someone please help provide sequences of > commands that result in the correct answers for each of the test cases below? > > C-small-practice.in Case #82 (Input: 26 1 60 13 3 2 ; Output should be 16) > > turns=17, debuff_count=1, buff_count=3, commands=DBCBCBCACACACACAA > turns=17, debuff_count=1, buff_count=4, commands=DBCBCBCBCACACACAA > turns=17, debuff_count=1, buff_count=5, commands=DBCBCBCBCBCACACAA > turns=17, debuff_count=3, buff_count=3, commands=DDCDBCBBCAACAACAA > turns=17, debuff_count=3, buff_count=4, commands=DDCDBCBBCBACAACAA > turns=17, debuff_count=3, buff_count=5, commands=DDCDBCBBCBBCAACAA > turns=17, debuff_count=7, buff_count=3, commands=DDCDDDDDBBBAAAAAA > turns=17, debuff_count=7, buff_count=4, commands=DDCDDDDDBBBBAAAAA > turns=17, debuff_count=7, buff_count=5, commands=DDCDDDDDBBBBBAAAA
One of the best way is turns=16, debuff_count=4, buff_count=3, commands=DDCDDCBBBBCAAAAA No interest to provide the larger case because I do it by hand, but it should be similar. You have missed some cases in the debuff_count. -- 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/39ed0e48-88fd-4dd0-a1fb-5b3a3bcac4cf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
