Hi,

  It depends on your compiler but all should have 64 bit integers:
- GNU C++ type: long long
- VC++ type: __int64

  If you simply want to reach 2^32-1 and don't need negative numbers
you may simply use the data type "unsigned long" which goes from 0 to
2^32-1.

  I hope it helps.

João Alves

On Sep 2, 4:36 pm, MagicLi <musicl...@gmail.com> 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?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-codejam" group.
To post to this group, send email to google-code@googlegroups.com
To unsubscribe from this group, send email to 
google-code+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-code?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to