No testdata at current.
No submission language available for this problem.
有一个长度为N的正整数数组A=(A1,A2,A3,…,An). 将A数组复制10100份,得到数组B。 将数组B从左到右依次累加,问第一次超过X是在哪个位置? 形式化的描述这个问题如下: 求满足下面条件的最小的k值。 i=1∑kBi>X
按照如下格式输入
N
A1 … AN
X
输出答案
3
3 5 2
26
8
4
12 34 56 78
1000
23
By signing up a 西蒙科教 universal account, you can submit code and join discussions in all online judging services provided by us.