some solutions and hints of spoj problems