U2023038 2023-12-23 12:08:10 2023-12-23 12:08:47
#include <bits/stdc++.h> using namespace std;
int main() { int x; cin>>x; int y; cin>>y; if (x%(y-1)<1) { cout<<x/(y-1); } else { cout<<x/(y-1)+1; }
return 0;
}