@[anaoai](/user/560814)
1. 您没有输入 $n$ 和 $m$
1. ```bal[i]=total/m-2;``` 应改成 ```bal[i]=(double)total/(m-2);```
1. $bal$ 数组下标是从 $0$ 到 $n-1$,所以最后应输出 $bal_{n-1}$
by Ninelife_Cat @ 2021-09-15 18:50:37
@[Ninelife_Cat](/user/329672) 好人一生平安,感谢大佬
by anaoai @ 2021-09-15 19:01:58