#33373: #c++ #cpp #c079 #思路 #公式 #helpful!


yp11151109@yphs.tp.edu.tw (907-33孫兆威)


cb: 菸屁股
要先sum=n;

然後
while(條件){
    sum+=n/k;
    cb=n%k;
     n=cb+n/k;

}

cout<<sum<<endl