Solutions to Sphere Online Judge (SPOJ) Problems