Solutions to the UVA Online Judge