从j=0;那一行开始以后的代码替换成以下几行:
box[0]++;for(carries=j=0;j if(box[j]>1){ box[j]--; box[j+1]++; carries++; }printf(" %d\n",carries);return 0;