---
# System prepended metadata

title: 'CF955A: Soccer'

---

# CF955A: Soccer
## 題目連結:[CF955A](https://codeforces.com/problemset/problem/1982/A)
當原本分數較高的隊伍變成分數較低的隊伍時，中間必有平手，輸出NO。
```cpp=
#include<bits/stdc++.h>
using namespace std;

int main()
{
    int t = 0;
    cin>>t;
    while(t--)
    {
        int x1,x2,y1,y2;
        cin>>x1>>y1;
        cin>>x2>>y2;

        if (x1 > y1 && x2 < y2)
        {
            cout<<"NO";
        }
        else if (x1 < y1 && x2 > y2)
        {
            cout<<"NO";
        }
        else
        {
            cout<<"YES";
        }
        if (t != 0)
        {
            cout<<endl;
        }
    }
}
```