牛寺另刂6 @ 2018-09-01 13:03:51
#include<iostream>
using namespace std;
int main()
{
int n,k,l;
cin>>n>>k;
l=n+n/k;
if(n/k>=k)
l=n+n/k+n/k/k;
cout<<l;
}
by __Hacheylight__ @ 2018-09-01 13:16:44
cin>>n>>k;
cout<<n+(n-1)/(k-1);
by __Hacheylight__ @ 2018-09-01 13:16:49
@牛寺另刂6
by 牛寺另刂6 @ 2018-09-01 13:48:13
@Harryheqg 谢谢