My take on SPOJ problems