Solutions to TIMUS Online Judge problems