题目链接:https://www.nowcoder.com/practice/9afc528ca8f14511832b9a537977ecf5
找规律
n,k = list(map(int,input().split()))
res = (n-1)//(k-1)
if (n-1)%(k-1) == 0:
print(res)
else:
print(res+1)
题目链接:https://www.nowcoder.com/practice/9afc528ca8f14511832b9a537977ecf5
找规律
n,k = list(map(int,input().split()))
res = (n-1)//(k-1)
if (n-1)%(k-1) == 0:
print(res)
else:
print(res+1)