Bigger data type

Write here if you have problems with your C++ source code

Moderator: Board moderators

Post Reply
kiddo
New poster
Posts: 4
Joined: Tue Aug 24, 2010 6:33 am

Bigger data type

Post by kiddo » Sun Aug 29, 2010 12:26 pm

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

mf
Guru
Posts: 1244
Joined: Mon Feb 28, 2005 4:51 am
Location: Zürich, Switzerland
Contact:

Re: Bigger data type

Post by mf » Sun Aug 29, 2010 11:48 pm

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.

kiddo
New poster
Posts: 4
Joined: Tue Aug 24, 2010 6:33 am

Re: Bigger data type

Post by kiddo » Mon Aug 30, 2010 5:35 am

will the grading system recognize gmp lib?

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

mf
Guru
Posts: 1244
Joined: Mon Feb 28, 2005 4:51 am
Location: Zürich, Switzerland
Contact:

Re: Bigger data type

Post by mf » Mon Aug 30, 2010 11:53 pm

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.

Post Reply

Return to “C++”