• + 1 comment

    AFAIK, there's no easy way to do this problem in C++ with the libraries provided. In real life you'd use a bignum library like GNU MP or Boost.Multiprecision, but those libraries aren't available here.

    You can certainly roll your own, but that seems a little extreme.

    I've done all the other algorithm problems in C++, but for this one I switched to Java so I could use java.math.BigInteger.

    • + 0 comments

      ohk.thank you