On Sunday, April 7, 2019 at 4:27:20 PM UTC+3, Ralph Furmaniak wrote: > Thanks for the problems! All were unique and clever and interesting, and I’m > looking forward to the rest of the rounds. > > One issue with the solution to the first problem in the analysis: The > constructive solution can result in 0s, eg: 10 would be decomposed as 10+0 > but the problem statement says that A and B must be positive integers. > There’s a bit of casework needed to make the solution always output positive > integers (number contains a 4, number has at least two non-zero digits, > number starts with a 1, 5, or anything else)
I just replaced 4 in the string by 2 and substructed the original input by the replaced string. -- 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/fffeb770-a37c-4137-a84f-8ff6e2aa558b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
