diff --git a/problem/P1150/P1150.cpp b/problem/P1150/P1150.cpp new file mode 100644 index 00000000..2bef7349 --- /dev/null +++ b/problem/P1150/P1150.cpp @@ -0,0 +1,10 @@ +#include + +using namespace std; + +int main() { + int n, k, ans = 0; + cin >> n >> k; + cout << n + (n - 1) / (k - 1) << endl; + return 0; +}