Using sscanf would certainly be a waste. I don't know how confident you are with C/C++, but I would advise using scanf around SPOJ until you get familiar with the environment. Of all the problems that i've solved (LeppyR64) there are very few on the site that would require such a method and it is tedious to code as there are so many finicky input sets.
But by all means, If you want to, go for it.