You also can be sure with a sizeof(long long). Returns the number of bytes
of the type. The range in msvc is

–9,223,372,036,854,775,808 to 9,223,372,036,854,775,807. Is this quite
enough...

2009/9/2 Joel Uchoa <[email protected]>

>
> There is "long long" type in C++, it's 64 bits (~10^18).
>
> On Wed, Sep 2, 2009 at 12:36 PM, MagicLi<[email protected]> wrote:
> >
> > C++ in Windows, both int and long type are  4bytes, that means the
> > biggest number can store is 2^31-1=2,147,483,647 , you may say the
> > unsigned int could be larger, yes, but only twice lager, still under
> > 10^10; for question like Round 1 B, B. Number Sets, the large input  :
> > 1 <= A <= B <= 10^12, 10^12 cannot be stored in C++'s built-in type.
> > So how to do that?
> >
> > >
> >
>
>
>
> --
>
> +--------------------------------------------------------------------------------+
>  Joel Silva Uchoa
>  Mestrando em Ciencia da Computação [IME-USP]
>  ----
>  Toda carne é como erva, e toda a glória do homem, como
>  a flor da erva. Secou-se a erva, e caiu a sua flor; mas a
>  palavra do Senhor permanece para sempre. (I Pe 1:24-25)
>
> +--------------------------------------------------------------------------------+
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to