3 test cases failed


please help

Look out for integer overflows.use long

please check the new code

Do take long otherwise it will give run error.

see this: