UVA Online Judge Problems and Solutions