Solutions to a couple of Timus Online Judge problems.