cpp sloutions to some of the spoj problems