Marathon Race 2
문제
JOI Avenue is a road of length in an east-west direction. The place of meters (0 ≤ l ≤ L) from the west end on the road is called ”position ”.
The first marathon race in JOI Avenue is going to be held this year. The race has a different regulation from normal one, which is described in the following:
- Before the race, balls are located on the road. The -th ball (1 ≤ i ≤ N) is located at position . Multiple balls may be located at the same position.
- The participant starts at the designated position.
- The participant collects all balls and finishes at the designated position. When this is achieved within the designated time limit, one completes the race. However, once the participant collect a ball, they must not put the ball on the road, otherwise they will be disqualified from the race.
The starting and finishing position, and the time limit, are not yet announced, but it is known that they are chosen from scenarios. The -th scenario (1 ≤ j ≤ Q) is that, the participant starts at position , finishes at position , and the time limit is seconds.
Rie is participating in the marathon race. She spends second to collect ball. She spends seconds to move meter, where is the number of balls she is carrying.
Write a program which, given the information of JOI Avenue, the positions of balls, and the scenarios, determines whether there exists a way for Rie to complete the race, for each scenario.
입력
Read the following data from the standard input.
출력
Write lines to the standard output. On the -th line (1 ≤ j ≤ Q), output Yes if there exists a way for Rie to complete the race for scenario , and No otherwise.
예제
예제 1
3 100 30 80 30 3 0 100 403 0 100 300 0 100 262
Yes Yes No
예제 2
3 100 30 80 30 3 0 0 403 0 0 300 0 0 262
Yes No No
예제 3
6 100 0 50 100 0 50 100 4 20 70 600 70 20 600 10 40 600 40 10 600
No Yes No Yes