皮皮xia @ 2018-12-16 19:20:25
using namespace std; int main(){ int n,k,a,sum=0; cin>>n>>k; if(n>=k){ a=n/k; } sum=a+n; cout<<sum; return 0; }
by 初音Miku @ 2018-12-16 19:23:10
希望更丰富的展现?使用Markdown
by 吹雪吹雪吹 @ 2018-12-16 19:23:58
希望更丰富的展现?使用Markdown
代码块这样写:
```cpp
/*这里放代码*/
```
by Eason_AC @ 2018-12-16 19:32:17
AC代码:
#include <bits/stdc++.h>
using namespace std;
int main() {
int n,k,t;
cin>>n>>k;
cout<<n+(n-1)/(k-1);
return 0;
}