Page 1 of 1

Bigger data type

Posted: Sun Aug 29, 2010 12:26 pm
by kiddo
I have problem finding a solution that need to use a bigger data type than 'long long'.
Maybe like Java Big Integer.

Is there a data type like Java Big Integer in C++?
Need help, A.S.A.P

Re: Bigger data type

Posted: Sun Aug 29, 2010 11:48 pm
by mf
kiddo wrote:Is there a data type like Java Big Integer in C++?
No. Write one, or use a third-party library such as gmp.

Re: Bigger data type

Posted: Mon Aug 30, 2010 5:35 am
by kiddo
will the grading system recognize gmp lib?

So, the only option I have to code it myself by using string operation?

Re: Bigger data type

Posted: Mon Aug 30, 2010 11:53 pm
by mf
kiddo wrote:will the grading system recognize gmp lib?
No, UVa judge doesn't allow third-party libraries.
So, the only option I have to code it myself
Yes.

It's not very hard at all, except for the division.
by using string operation?
Using arrays, yes.