Solutions to Timus Online Judge