I think there is an overflow at boundary condition. case ex. 1 40 0 1 1000000 1 1000000 upto 40 times. calculation will reach beyond the scope of greatest of data types like long long. should I assume there is is no such case in the judge while testing the code??
↧