I’m solving some problems on UVA online judge now, and I’m running into scenarios where I have to store very large integer values (15 digits or more sometimes). Is there any way I can do it without the usage of third-party libraries? [Anything similar to BigInteger class in java?].
I’m solving some problems on UVA online judge now, and I’m running into scenarios
Share
For pow with integers, http://en.wikipedia.org/wiki/Exponentiation_by_squaring
I would suggest GMP
Please refer this link:- C++ handling very large integers