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:
parent
8848b41038
commit
c1a7d1dfbf
10
problem/P1150/P1150.cpp
Normal file
10
problem/P1150/P1150.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user