In an under-construction village, $$$n$$$ houses have been built in a row numbered from $$$1$$$ to $$$n$$$. House $$$i$$$ has hospitality $$$h_i$$$.
The village has $$$n - 1$$$ roads, where road $$$i$$$ connects houses $$$i$$$ and $$$i + 1$$$ and will be built on day $$$d_i$$$. Initially, no roads are built.
You start at house $$$x$$$ and will stay in the village from day $$$1$$$ to day $$$k$$$, initially with a satisfaction of $$$0$$$. On day $$$s$$$, the following happens in order:
Find the maximum satisfaction you can achieve after $$$k$$$ days.
Each test contains multiple test cases. The first line contains the number of test cases $$$t$$$ ($$$1 \le t \le 10^4$$$). The description of the test cases follows.
The first line of each test case contains three integers $$$n$$$, $$$k$$$ and $$$x$$$ ($$$2 \le n \le 2 \cdot 10^5$$$, $$$1 \le k \le 10^9$$$, $$$1 \le x \le n$$$) — the number of houses, the number of days and the starting house, respectively.
The second line contains $$$n$$$ integers $$$h_1, h_2, \ldots, h_n$$$ ($$$0 \le h_i \le 10^9$$$) — the hospitality of each house.
The third line contains $$$n - 1$$$ integers $$$d_1, d_2, \ldots, d_{n - 1}$$$ ($$$1 \le d_i \le k$$$) — the day each road is built.
It is guaranteed that the sum of $$$n$$$ over all test cases does not exceed $$$2 \cdot 10^5$$$.
For each test case, output a single integer — the maximum satisfaction you can achieve after $$$k$$$ days.
45 10 314 2 3 5 610 6 2 74 8 10 0 0 17 1 22 1000000000 11 100000000019 27 617 13 5 8 14 3 4 17 2010 1 2 13 3 15 6 23
5201000000000000000000386
In the first test case, the following is one optimal sequence of moves:
It can be shown that it is impossible to achieve a satisfaction greater than $$$52$$$.
In the second test case, you cannot reach house $$$4$$$ within $$$8$$$ days, so the maximum achievable satisfaction is $$$0$$$.
In the third test case, you can immediately move to house $$$2$$$ and remain there for $$$1\,000\,000\,000$$$ days.
| Name |
|---|


