public static void sort() {
int x = 1;//每次分鱼的总数
int count = 5;//人的个数
int sum = 1;//总鱼数
while(count > 0) {
if ((x % 5 == 1) && (x/5 > 0)) {
x = (x/5) * 4;
count--;
} else {
count = 5;
x = ++sum;
}
}
System.out.println(sum);
}
路漫漫其修远兮,吾将上下而求索