Solutions to UVA, USACO, CP3 Problems