I don't use JS, but unless js doesn't use unlimited integer by natural, it's 
probably parsing problem since the input can be very big, going over range of 
int type.

Adding character each time shouldn't be a problem. Max value 10^100 means it's 
string representation can have at most 101 length. Even if algorithm is O(N^2), 
it won't get too big. Also the reason program failed is WA, not TLE.

-- 
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/bf1d9763-caed-48da-a00b-75566ee5225a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to