正文
增加 1 行删除 1 行
81 行未改动8283848586878889906 行未改动81 行未改动if(tot+x>=k)ans+=k-tot,tot=0;else{tot+=x;ans+=x;}}tot++;if(tot==k)tot=0;}6 行未改动81 行未改动8283848586878889906 行未改动81 行未改动if(tot+x>=k)ans+=k-tot,tot=0;else{tot+=x;ans+=x;}}tot++;if(tot==k)tot=0;}6 行未改动