solutions for some of the spoj problems I solved