My SPOJ problems