算法问题,求解,用C或C++Counting Numbers(Input file: pe.in/Output file