A. A.我只知道,在我心里,比起这个世界,你更重要!

    Type: Default 1000ms 256MiB

A.我只知道,在我心里,比起这个世界,你更重要!

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Background

雷光斩断过去,你我踏上歧路。我将坠入黑暗,换你回到光明

img

Description

芽衣和琪亚娜各自有XaX_aXbX_b的攻击力,以及YaY_aYbY_b的生命值,每次假设琪亚娜先手攻击,问你是否能在生命力小于等于0前击败芽衣(使其生命值为小于等于0)并留下她

Format

Input

第一行输入一个T表示T组输入1<=T<=1e5(1<=T<=1e5) 第二行至第T+1行每行输入XaXbYaYbX_a、X_b、Y_a、Y_b1<=Xa<=1e91<=Xb<=1e91<=Ya<=1e91<=Yb<=1e9(1<=X_a<=1e9,1<=X_b<=1e9,1<=Y_a<=1e9,1<=Y_b<=1e9)

Output

如果能留下,则输入YES,否则输入NO

Samples

1
1 10 5 10
YES

Limitation

1s, 1024KiB for each test case.

SWPU ROUND #6(DIV.3)

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
5
Start at
2021-12-26 9:00
End at
2021-12-26 11:30
Duration
2.5 hour(s)
Host
Partic.
40