poj3585accumulationdegree