求助,为什么我的最后输出里面i要加1呢,不加不正确,有改法吗

P1423 小玉在游泳

上一步的98%
by Pitiless_boy @ 2023-10-09 19:24:20


i从1开始
by huangmingyi @ 2023-10-09 19:32:37


@[Liyan100](/user/1130400)
by Pitiless_boy @ 2023-10-09 19:40:29


@[huangmingyisunny1804](/user/966082) 这样用他/她的代码样例是4
by Pitiless_boy @ 2023-10-09 19:41:06


因为sum开始是要等于2的
by Pitiless_boy @ 2023-10-09 19:41:58


这样
by Pitiless_boy @ 2023-10-09 19:42:15


|