10分求助!!!!!

P2676 [USACO07DEC] Bookshelf B

@[cotangent_0](/user/938586) 啊, > ```cpp > s += a[temp]; > ++cnt; > ``` 为什么不是 `a[cnt]`?
by Carroty_cat @ 2023-07-13 15:44:59


@[StandardManager](/user/912750) 解决了 谢谢:) 我发现我忘记temp是干什么的了(汗
by cotangent_0 @ 2023-07-13 15:54:40


|