Verdict : Wrong Answer. Problem :https://www.spoj.com/problems/DCEPC12G/ MY code:https://ideone.com/Xflrxi Please help.
What numbers have you used to test this? Did you get the correct results?