Solutions to Sphere Online Judge problems.