I'm relatively new to GCJ so please forgive me the foolish question :) Namely: if there is some task where you could greatly benefit from precomputing some resources (like precomputing fair and square numbers for Fair and Square task, for example) and then using the calculated ones in your code, could you do it even when they don't fit in your source code as long as you give the right annonation?
I mean: say we computed all fair and square numbers up to 10^5000 (yeah, I know the limit was lower, it's hypothetical) - we won't be able to have them in an array like fairAndSquare = [<whole lotta numbers here>] cause our code will greatly exceed the limit. Hence, can we calculate the solution using such code but at the same time submit a source code with the array in a form like: farAndSquare = [0, 1, 4, 9, 121, 484, 10201, 12321, 14641, 40804 """<I precomputed 1000 more and used it in my solution>"""]? Is it legal or does the code have to behave in such a way that in case it was compiled any time later and given the test input as standard input, it would produce the exactly same output we submitted as the standard output? -- 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/-/Qv1_5pXPU7MJ. For more options, visit https://groups.google.com/groups/opt_out.
