DLee came to a new level. What is waiting for him is a tall building with n floors, with a monster on each stair, the i-th of which has health point ai.
DLee starts from the ground(which can be regarded as the 0-th floor), with a ba
Note that DLee should always be on floors 0,1,2,3,…,n.
Now DLee asks you whether it is possible to defeat all the monsters and pass the level.
There are T test cases.
In each test case, the first line contains three integers:n,a0,k(1≤n,k≤105,1≤a0≤109), representing the number of floors, ba
The second line contains n integers a1,…,an(1≤ai≤109), representing the health point of each monster.
The sum of n does not exceed 106.
4
6 1 4
2 2 1 1 9 3
4 2 2
2 3 8 1
3 1 2
3 1 2
7 2 3
4 3 2 7 20 20 20
YES
YES
NO
NO