第三个 WA 了,实在是搞不懂 90分
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int n = input.nextInt();
int k = input.nextInt();
int nNew = (int) (n / k);
int more = n % k;
int num = n + nNew;
if (nNew >= k) {
int nNewmore = (int) (nNew / k);
num += nNewmore;
more += nNewmore + nNew % k;
}
if (more >= k) {
int moreMore = (int) (more / k);
num += moreMore;
more += moreMore + moreMore % k;
}
if (more < k) {
System.out.println(num);
}
}
}