You can approximate from the input limits how big the value of the variable will be at some point of time during execution. From that approximation, one can decide the data type of that variable. Regards, Mahendra Kariya http://www.mahendrakariya.blogspot.com
On Sun, Sep 13, 2009 at 6:59 PM, Grant Kot <[email protected]> wrote: > I wish there was a way to catch these overflows maybe with a try catch, or > is there? I'm using C#, I'm just wondering how you guys decide the size of > the data, like whether to use int or long or maybe even BigInteger. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
