Lately, I’m trying to code few basic problems in C++ and finding it hard in some cases when problems with BigInteger arises.
With Java, I can easily do,
BigInteger b = new BigInteger(“111111111111111111111111111111111111111”);
That above value could not be even held in a long datatype in java.
Similarly If I want to do the same in C++, Is there any straightforward piece of code [expecting in 2 to 3 lines], such that the usage becomes easy.
P.S : Couldn’t find anything useful in google / codeforces - one such blog had hectic big explanation and didn’t understand a thing