There is an array $$$a$$$ consisting of $$$n$$$ positive integers, and a positive integer $$$k$$$. An array $$$b$$$ is created from array $$$a$$$ according to the following rules:
For example, if $$$a = [2, 3, 1, 4]$$$ and $$$k = 3$$$, then $$$b = [2, 3, 1, 4, 2, 3, 1, 4, 2, 3, 1, 4]$$$.
Given a number $$$x$$$, it is required to count the number of such positions $$$l$$$ ($$$1 \le l \le n \cdot k$$$), for which there exists a position $$$r \ge l$$$, such that the sum of the elements of array $$$b$$$ on the segment $$$[l, r]$$$ is at least $$$x$$$ (in other words, $$$b_{l} + b_{l+1} + \dots + b_{r} \ge x$$$).
Each test consists of several test cases. The first line contains one integer $$$t$$$ ($$$1 \le t \le 10^{4}$$$) — the number of test cases. The description of the test cases follows.
The first line of each test case contains three integers $$$n$$$, $$$k$$$, $$$x$$$ ($$$1 \le n, k \le 10^{5}$$$; $$$1 \le x \le 10^{18}$$$).
The second line of each test case contains $$$n$$$ integers $$$a_{i}$$$ ($$$1 \le a_{i} \le 10^{8}$$$).
Additional constraints on the input:
For each test case, output one integer — the number of suitable positions $$$l$$$ in the array $$$b$$$.
75 3 103 4 2 1 515 97623 1300111105 95 108 111 118 101 95 118 97 108 111 114 97 110 1161 100000 123456789101111 1 111 1 122 1 21 12 1 52 1
12 1452188 0 1 1 1 0
In the first test case, the array $$$b$$$ looks like this:
$$$$$$[3, 4, 2, 1, 5, 3, 4, 2, 1, 5, 3, 4, 2, 1, 5]$$$$$$
There are $$$12$$$ positions $$$l$$$ for which there exists a suitable position $$$r$$$. Here are some (not all) of them: