0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2025-01-23 16:31:58 +00:00

P1150 Peter的烟

R39915889
This commit is contained in:
Baoshuo Ren 2020-10-16 20:50:10 +08:00 committed by Baoshuo Ren
parent 8848b41038
commit c1a7d1dfbf
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

10
problem/P1150/P1150.cpp Normal file
View File

@ -0,0 +1,10 @@
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, k, ans = 0;
cin >> n >> k;
cout << n + (n - 1) / (k - 1) << endl;
return 0;
}