#include<iostream> int main() {long long k,n; std::cin>>n>>k; n+=(n-1)/(k-1); std::cout<<n<<std::endl;}
必须是已AC的代码,发记录