Hello Sir, I am not getting why I am getting wrong answer by the spoj online judge , please help me out...
Here is my code:--CODE DELETED.....
Your algorithm is not correct. You clearly haven't tested very much.
thnks for ur reply...it is accepted now..