ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1222. Chernobyl’ Eagles

using Java.math.BigInteger really saves a lot of coding
Posted by DR. Zhihua Lai 1 Dec 2011 02:03
Hehe,,, normally i don't write Java code, but I am lazy this time :)
Re: using Java.math.BigInteger really saves a lot of coding
Posted by sylap 23 Dec 2012 13:59
YOU ARE REALLY LAZY :
void MLT(int x)
{
    int r = 0;
    REP(i,3000)
    {
        int init = ((res[i]*x)+r);

        res[i] = init % 10;
        r = init / 10;
    }
}
Re: using Java.math.BigInteger really saves a lot of coding
Posted by DR. Zhihua Lai 25 Dec 2012 05:59
I know. :)