THANKS IN ADVANCE!
Do not know what kind of problem you are facing, but here is link to solution to SPOJ Problem.
Hope it helps, Best Luck
what do you mean by “i have a problem” ? which one ? it’s easier to help you if we know what you already tried, and so on.
LOL What’s Ur problem ??