On Thursday, April 11, 2019 at 6:20:32 PM UTC+4:30, [email protected] wrote: > 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.
so you mean the reason might be the limitation of numbers in js so that after the max exceed, the numbers (i in for loop) are not increasing anymore? I don't think 10^100 go out of range in js -- 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/cb47e4aa-d147-47fa-996a-dc6d1a4d1d6b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
