Don't use pow. Use integers only to avoid overflows #pow((2*r - 1), 2) (2*r-1)*(2*r-1)
#pow(d, 0.5) isqrt(d) where isqrt is integer square root as described here: http://code.activestate.com/recipes/577821-integer-square-root-function/ -- 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/msg/google-code/-/dGGSfxfjEzoJ. For more options, visit https://groups.google.com/groups/opt_out.
