Hi...
I was trying to solve the problem Number(Round 1A). I read the Contest
Analysis, but... i do not undestand why do they calculate that.
"return (2 * M_n[0][0] + 999) % 1000"
Because, in this matrix (4) in the Costest Analysis, we have the
numbers an and bn.
Why is it wrong? (an + bn*sqrt(5))%1000;
Thanks =)
--
Saul Hidalgo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"google-codejam" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-code?hl=en
-~----------~----~----~----~------~----~------~--~---