Solutions to problems of SPOJ.