Message from C, C++ talks
No. No. It is not a contest. Do check the problem link, You will also get to know that it is just a simple problem question.I have some other code solution as well on my hand from my friend and it is almost similar to my code. But as I said it is unable to get accepted by SPOj.