#C2019. Can Chef Follow the Recipe?
Can Chef Follow the Recipe?
Can Chef Follow the Recipe?
Chef has a recipe that requires exactly S grams of sugar and F grams of flour. He also has CS grams of sugar and CF grams of flour available. Chef must decide whether he can follow the recipe exactly.
For each test case, if both conditions
$$CS \geq S$$
and
$$CF \geq F$$
are satisfied, print YES
; otherwise, print NO
.
Your task is to determine, for each test case, if the available ingredients meet or exceed the required quantities.
inputFormat
The input is read from standard input (stdin). The first line contains an integer T representing the number of test cases. Each of the next T lines contains four space-separated integers: S, F, CS, and CF, which represent the required sugar, required flour, available sugar, and available flour, respectively.
outputFormat
For each test case, output a single line to standard output (stdout) containing YES
if Chef can follow the recipe (i.e. both available ingredients are at least the required amounts), otherwise output NO
.## sample
3
50 30 50 30
60 20 50 30
100 100 100 100
YES
NO
YES
</p>