#include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<cmath>
using namespace std;
int n,k,ans;
int main()
{
cin>>n>>k;
while(n>=k)
{
ans+=k;
n=n-k+1;
}
ans+=n;
printf("%d",ans);
}
Peter的烟
最新推荐文章于 2024-06-25 21:32:21 发布