yunya @ 2024-11-12 21:06:16
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,k;
cin>>n>>k;
int i,j;
j=0;
int num=0;
for( i=n;i>k;i-=k){
num++;
i++;
}
cout<<num+n;
return 0}
by Rannio @ 2024-11-12 21:09:15
烟蒂换的烟还可以拿来换烟