Collection of SPOJ classical problems solutions