FCB_1899 @ 2020-12-29 17:43:49
#include<iostream>
using namespace std;
int main()
{
int n,k;
cin>>n>>k;
int d=0,s=n;
while(n)
{
d=n;
n=0;
s=s+d/k;
n=d/k;
d=d%k;
}
cout<<s;
return 0;
}
by FCB_Yiyang2006✈ @ 2020-12-29 19:29:52
@liuxingjian
d = n;
改为
d += n;
by FCB_1899 @ 2020-12-29 21:44:45
谢谢同信仰红蓝的dalao @FCB_Yiyang2006✈
by FCB_Yiyang2006✈ @ 2020-12-30 23:31:46
@liuxingjian 不谢,加油!另外巴萨最近也要加油了...
by FCB_1899 @ 2020-12-31 06:50:13
@FCB_Yiyang2006✈ 是啊,希望巴萨力挽狂澜吧,至少拿个联赛前五