I am practicing previous year question. I was having problem in understanding the contest analysis of ROUND 1A( C ) quesn. 2008
There are different solutions available . I was working on 'solution A' of this ques. It is written Xn=(2*A_n)%1000 , but why did final result is Xn=( 2*A_n +999 )%1000 why 999 is added again? and second there is some typing mistake in the python code provided in solutionA It is written :: return (2 * M_n[0][0] + 999) % 1000 It should be :: return (2 * A_n[0][0] + 999) % 1000 -- 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/1ce42301-edf4-453c-8a0d-a4220f080a31%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
