k115414_ @ 2024-10-15 21:38:39
80分,求调,玄关```
using namespace std; int main(){ int yan,feiyan; cin>>yan>>feiyan; cout<<yan+yan/feiyan; return 0; }
by lunjiahao @ 2024-10-15 21:42:07
@k115414_ 希望更丰富的展现?使用 Markdown、KaTeX。
#include<bits/stdc++.h>
using namespace std;
int main()
{
int yan,feiyan;
cin>>yan>>feiyan;
cout<<yan+(yan-1)/(feiyan-1);
return 0;
}
by simple_child @ 2024-10-15 21:44:12
@k115414_
#include<bits/stdc++.h>
using namespace std;
int main()
{
//freopen(".in","r",stdin);
//freopen(".out","w",stdout);
ios::sync_with_stdio(false);
cin.tie(nullptr);cout.tie(nullptr);
int n,k;
cin>>n>>k;
cout<<n+(n-1)/(k-1);
return 0;
}
by k115414_ @ 2024-10-15 21:44:32
@lunjiahao 多谢巨佬(已关) 等会芙厨???uid留下
by k115414_ @ 2024-10-15 21:46:13
@simple_child GESP二级萌新表示看不懂思密达
by simple_child @ 2024-10-16 19:05:25
@k115414_ ????? 你
int n,k;
cin>>n>>k;
cout<<n+(n-1)/(k-1)<<endl;
看不懂?