#K7416. Cake Judgement
Cake Judgement
Cake Judgement
You are given a number of cakes. For each cake, you are provided with its original dimensions and its presented dimensions. Determine whether the cake should be judged or disqualified.
A cake is judged if both its presented length and width are at least as large as the original dimensions. Formally, for each test case, let \(L_{orig}\) and \(W_{orig}\) be the original length and width, and \(L_{presented}\) and \(W_{presented}\) be the presented dimensions. The cake is judged if:
[ L_{presented} \geq L_{orig} \quad \text{and} \quad W_{presented} \geq W_{orig} ]
Otherwise, the cake is disqualified.
inputFormat
The input is read from standard input (stdin). The first line contains an integer \(T\), the number of test cases. Each of the following \(T\) lines contains four integers separated by spaces: \(L_{orig}\), \(W_{orig}\), \(L_{presented}\), \(W_{presented}\).
outputFormat
For each test case, output a single line with either "Judged" if the presented cake meets the criteria, or "Disqualified" otherwise. The output is printed to standard output (stdout).
## sample3
10 12 10 12
15 20 20 25
5 5 5 5
Judged
Judged
Judged
</p>