some spoj problems solved