Sometimes I have used restrictive data types which work for the 'small' file but not for the 'large' file.
For example, when computing products in the Minimum Scalar Product round, I used .net Int32 (32 bit) type. The small file ran successfully, but the large file failed. I changed to Int64 (64 bit) and it worked successfully. The program will also take longer for the large input file, as there are many more cases to evaluate and the cases deal with larger numbers. It shouldn't take 'an eternity' but will take many times longer than the small file. On Aug 11, 7:05 pm, Akhil Handoo <[email protected]> wrote: > I tried & am able to solve some gcj problems, but only for the small input > files. > I do not understand why, my code almost always seems to take an eternity, > when working on a large input file & sometimes it simply does not work on > large input files, although it correctly solved the small input file. > Please advise me, guys. > > -- > Regards... > Akhil ! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "google-codejam" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-code?hl=en -~----------~----~----~----~------~----~------~--~---
