Read the analysis. The reason to use matrix is to reduce running time. Since all the operation here are linear operations, Matrix multiplication is a good way to calculate the result (fast exponential).
-- 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/a6f512cd-ce4a-4fbf-a16b-f2347d5c0fd3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
