2021xiaohu @ 2022-01-13 12:28:17
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,k,sum,s;
cin>>n>>k;
s=n/k;
sum=n+s+s/k;
cout<<sum<<endl;
return 0;
}
by 编码落寞 @ 2022-01-13 15:04:34
@2021xiaohu
循环里的s处理还是有问题