Wangxiaolong666 @ 2022-10-23 17:10:24
#include <iostream>
using namespace std;
int main()
{
int n,k;
cin>>n>>k;
int i=n;
while(n>=k)
{
n=n-k;
i=i+1;
}
cout<<i;
return 0;
}
by WZWZWZWY @ 2022-10-23 17:19:14
你落了一种情况:
当有k个烟蒂时,能换一只新的烟。新的烟会多一个烟蒂
by WZWZWZWY @ 2022-10-23 17:19:30
@Wangxiaolong666