@[yangqiyuan](/user/638274) `for(int i=1; i<n; i++)` 改成 `for(int i=1; i<=n; i++)`
by eEfiuys @ 2022-02-13 15:28:56
一共 $n$ 个,你只算了 $n-1$ 个
by eEfiuys @ 2022-02-13 15:29:18
@[aqx_AK_xyf](/user/437788) 感谢大佬
by _YQY @ 2022-02-13 15:30:55