xxxkamikaze @ 2024-07-15 01:44:34
#include<iostream>
using namespace std;
int main()
{
int n;long int k;
cin>>n>>k;
cout<<n/k+n<<endl;
return 0;
}
by Maisie586_ @ 2024-07-15 05:56:13
@xxxkamikaze 求关
#include <bits/stdc++.h>
using namespace std;
int main(){
int n,k;
cin>>n>>k;
cout<<n+(n-1)/(k-1);
return 0;
}