My codes to SPOJ problems