On Sunday, April 12, 2015 at 5:08:06 PM UTC+1, Shubham Jain wrote:
> Is there any reason for choosing (12+M%12) particularly?

It can be reduced to min(M, 4 + M %4), as 4 parts multiplied is Identity = 1.

Then create new string repeated that times and check it.

Find first i value, then first j after it, and check if last part equals to k.

Usually good simplified string looks like this 111111i1111j1111k1111 - 
multiplying by 1 doesn't change value.

-- 
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/baaa10b7-d0bb-43d9-9405-6d6476196598%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to