usaco; improve "Barn Repair" after reading another solution