SPOJ Problem Set