i am using "long long" on my 32-bit machine to work with 64 bit numbers but if ur number is greater than 64 bit number u can use "bigint", there is lots of good topics about it just google for "bigint"
Regards Mohamed Sayed Ghoneim 016-86-56-215 On Fri, Apr 16, 2010 at 7:29 PM, tonka <[email protected]> wrote: > is there any rule that says that one cannot use a mainframe computer > to run the code? because in those computers you can use the code > written for small dataset (which generally uses brute force) for large > dataset and get outputs instantly? > > On Apr 16, 1:28 pm, Narasimha Datta <[email protected]> wrote: > > long int is 32 bits only on a 32-bit system; it is 64 bits on a 64-bit > > system. > > > > - ND > > > > On Fri, Apr 16, 2010 at 1:39 AM, Felipe Sodré Silva <[email protected] > >wrote: > > > > > > > > > > > > > If you are using C/C++, long int is supposed to be 32-bit. If you want > > > 64-bit integer, you must use long long int. > > > > > On Thu, Apr 15, 2010 at 11:00 AM, tonka <[email protected]> > wrote: > > > > >> i was working with the large input data but then i found out that the > > >> long int datatype allocates 4 bytes of memory whereas it is supposed > > >> to be 64 bits. i am using vista 32-bit OS. in case i want to use 64- > > >> bit integers then what OS and compiler should i use? otherwise is > > >> there a way to allocate memory according to the desired size for > > >> integer data, something like if i want to allocate 10 bytes of memory > > >> for an integer then what should be the code? > > >> thanks in advance. > > >> tonka. > > > > >> On Apr 15, 4:45 pm, kirk79 <[email protected]> wrote: > > >> > Very true. I have tried many problems that work on small but fail > on > > >> > large, and when I replace all 32 bit integers with 64 bit integers > the > > >> > large file works. > > > > >> > I now try to use long (64 bit integers) whenever there is a chance > > >> > that they will be required. > > > > >> > On Apr 15, 9:39 pm, Nitin Kumar <[email protected]> wrote: > > > > >> -- > > >> 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]<google-code%[email protected]> > <google-code%2bunsubscr...@googlegr oups.com> > > >> . > > >> For more options, visit this group at > > >>http://groups.google.com/group/google-code?hl=en. > > > > > -- > > > 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]<google-code%[email protected]> > <google-code%2bunsubscr...@googlegr oups.com> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-code?hl=en. > > > > -- > > 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]<google-code%[email protected]> > . > > For more options, visit this group athttp:// > groups.google.com/group/google-code?hl=en. > > -- > 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]<google-code%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-code?hl=en. > > -- 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.
