样例全过保龄

B3628 机器猫斗恶龙

改成这样: ```cpp for(register int i = 1; i <= n; i ++) { cin >> a[i]; ans += a[i]; if(ans<=0) sum = max(sum, 1 - ans); } cout << sum; ``` 其他的不动
by End_of_time @ 2022-11-15 12:52:32


@[Hai_Wei___naixiong](/user/511445)
by End_of_time @ 2022-11-15 12:55:28


@[EGPlayer](/user/539983) 感谢!!!
by Hai_Wei___naixiong @ 2022-11-15 13:01:21


用数组的道理何在?
by xiaorang @ 2022-12-05 07:00:43


|