根据题意,如果在过程中出现小于等于零,就结束了,所以要找到前缀和的最小的数。
结果要判一下,如果是零或者负值 ,就是是取绝对值大1的值 ,如果 是正值 ,就是输出1,就可以了。
By signing up a 龙樾实验中学 universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 龙樾实验中学 universal account