• + 17 comments

    Use BigInteger...if you only get wrong after testcase6, it most likely because int couldn't not hold large numbers... So use BigInteger instead...