Solutions of problems on SPOJ.com