2008年7月30日 星期三

Google Code Jam Round 1A Numbers

This problem simply asks about the three digits before decimal points for .
can be very large.

The idea is very simple. Since the required number is in surd form, its power is also in surd form, namely . Consider it's conjucate , it is not difficult to verify that it's power is also in surd form, namely . Note that and since , that means the sum should be nearly itself. The final answer is just to consider the round off by 1, and giving the answer by considering is enough.

Remember can be calculated by:

沒有留言: