solved 10003 - Cutting Sticks from UVA online judge